/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0f172a;       /* Slate 900 - Navy/Black */
    --color-primary-light: #1e293b; /* Slate 800 */
    --color-primary-dark: #090d16;  /* Dark background for Hero/Footer */
    --color-accent: #c5a880;        /* Muted Warm Corporate Gold */
    --color-accent-hover: #b3956d;  /* Darker Gold */
    --color-accent-light: #f7f4ef;  /* Light Gold tint */
    
    /* Neutral Colors */
    --color-text-dark: #1e293b;     /* Slate 800 */
    --color-text-muted: #475569;    /* Slate 600 */
    --color-text-light: #94a3b8;    /* Slate 400 */
    --color-text-white: #ffffff;
    
    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;            /* Slate 50 */
    --bg-card: #ffffff;
    --bg-navbar: rgba(15, 23, 42, 0.95);
    
    /* Borders & Shadows */
    --border-color: rgba(226, 232, 240, 0.8); /* Slate 200 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.06);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    
    /* Layout Constants */
    --max-width: 1200px;
    --nav-height: 80px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

p.text-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    transition: var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-container {
    background-color: var(--color-text-white);
    padding: 6px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.brand-logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition-normal);
}

.navbar.scrolled .brand-logo-container {
    padding: 4px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .brand-logo-img {
    height: 38px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-btn {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-primary-dark);
    background-image: url('../images/court_strafjustizzentrum.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--color-text-white);
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 13, 22, 0.7) 0%, rgba(9, 13, 22, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 750px;
}

.hero-tag {
    display: inline-block;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .accent-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   KANZLEI & PHILOSOPHIE
   ========================================================================== */
.kanzlei-image-wrapper {
    position: relative;
}

.kanzlei-img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.image-overlay-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-accent);
    max-width: 220px;
    text-align: center;
    z-index: 10;
}

.overlay-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.overlay-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.kanzlei-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.philosophy-highlights {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .philosophy-highlights {
        grid-template-columns: 1fr;
    }
}

.highlight-item {
    display: flex;
    gap: 1.25rem;
}

.highlight-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.highlight-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   SCHWERPUNKTE (FOCUS CARDS)
   ========================================================================== */
.focus-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-fast);
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(197, 168, 128, 0.2);
}

.focus-card:hover::before {
    background-color: var(--color-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.focus-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.focus-intro {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.focus-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.focus-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-subheading {
    margin: 3rem 0 2rem 0;
}

.team-subheading h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.team-subheading .divider {
    height: 2px;
    background: linear-gradient(to right, var(--color-accent) 80px, var(--border-color) 80px);
    width: 100%;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.team-image-container {
    position: relative;
    height: 280px;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-placeholder-avatar {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: var(--transition-normal);
}

.team-card:hover .team-placeholder-avatar {
    color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.placeholder-glow {
    animation: placeholder-pulse 2s infinite ease-in-out;
}

@keyframes placeholder-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    position: relative;
}

.team-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    background-color: var(--color-accent-light);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.badge-accent {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--color-accent);
    border: 1px dashed var(--color-accent);
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.placeholder-desc-text {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
}

.team-card:hover .more-link {
    color: var(--color-accent-hover);
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

/* ==========================================================================
   SERVICE & DOWNLOADS
   ========================================================================== */
.download-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.download-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.download-card:hover .download-icon {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.download-icon svg {
    width: 24px;
    height: 24px;
}

.download-card h4 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.download-card p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
}

.fees-info {
    margin-top: 4rem;
    background-color: var(--color-accent-light);
    border-left: 4px solid var(--color-accent);
    padding: 2.5rem;
    border-radius: 0 4px 4px 0;
}

.fees-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.fees-info p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   COURTS / LOCATION GALLERY
   ========================================================================== */
.location-gallery-section {
    border-top: 1px solid var(--border-color);
}

.gallery-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.gallery-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.0) 100%);
    padding: 1.5rem;
    color: var(--color-text-white);
}

.gallery-info h4 {
    color: var(--color-text-white);
    font-size: 1.1rem;
    margin: 0;
}

.gallery-placeholder-container {
    height: 240px;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--color-text-light);
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.gallery-placeholder-container p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.kontakt-section {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    position: relative;
    z-index: 1;
}

.kontakt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(30, 41, 59, 0.15) 0%, transparent 80%);
    z-index: -1;
}

.kontakt-section .section-title {
    color: var(--color-text-white);
}

.kontakt-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info-card, .contact-form-card {
    background-color: var(--color-primary-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.contact-info-card h3, .contact-form-card h3 {
    color: var(--color-text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.contact-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-item h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    color: var(--color-text-white);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-link {
    color: var(--color-text-white);
}

.contact-link:hover {
    color: var(--color-accent);
}

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list span:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.emergency-alert {
    background-color: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
}

.emergency-alert h4 {
    color: var(--color-accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.emergency-alert p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 3rem 0;
    color: rgba(255, 255, 255, 0.4);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

.footer-meta {
    text-align: right;
}

.footer-meta p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
}

.modal-trigger-btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.modal-trigger-btn:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1.5rem;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.modal-content-large {
    max-width: 800px;
}

.modal-backdrop.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--color-text-light);
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body-content {
    padding: 3rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-body-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 0.75rem;
}

.modal-body-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem 0;
}

.modal-body-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-body-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.modal-body-content ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.modal-body-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Team Bio Modal Details */
.bio-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.bio-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Dimensions */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .kanzlei-img {
        height: 380px;
    }
    
    .image-overlay-box {
        bottom: -10px;
        right: -10px;
        padding: 1.5rem;
    }
}

/* Mobile Menu Open State */
@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .kanzlei-content {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    /* Navbar & Mobile menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--color-primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-meta {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .modal-body-content {
        padding: 2rem;
    }
    
    .bio-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   GOOGLE RATING WIDGET
   ========================================================================== */
.google-rating-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-accent);
    max-width: 220px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 10;
}

.google-rating-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-white);
}

.google-logo-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.google-rating-stars {
    color: var(--color-accent);
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 1px;
}

.google-rating-score {
    display: flex;
    flex-direction: column;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
}

.review-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .google-rating-box {
        position: static;
        margin: 1.5rem auto 0 auto;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        text-align: left;
        border-left: none;
        border-top: 4px solid var(--color-accent);
        box-shadow: var(--shadow-md);
    }
    
    .google-rating-score {
        align-items: flex-start;
    }
}

/* ==========================================================================
   HERO LOGO SIDE BY SIDE (GOLD COWORKER)
   ========================================================================== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero-logo-side {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-logo-side-img {
    max-width: 100%;
    width: 420px;
    height: auto;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
    transition: var(--transition-slow);
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        gap: 3rem;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    .hero-logo-side {
        justify-content: center;
        width: 100%;
    }
    .hero-logo-side-img {
        width: 300px;
    }
}
