/* ==========================================================================
   Kodex Marketing — Standort-Landingpages
   Shared stylesheet for /standorte/*.html (generated by tools/build-standorte.mjs)
   Mirrors the inline styles of leistungen/*.html and kontakt.html.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #062F5D;
    --teal: #0C7A83;
    --slate: #667085;
    --mist: #F5F7FA;
    --white: #FFFFFF;
    --navy-light: #0a3d6f;
    --teal-light: #0e8f9a;
    /* Brand teal fails contrast on the navy hero — this lighter tint clears AA. */
    --teal-bright: #4EC3CC;
    --border: #E2E8F0;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== NAVIGATION ========== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--navy); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { background: var(--teal); color: var(--white) !important; padding: 10px 24px; border-radius: 6px; font-weight: 600 !important; transition: background 0.2s; }
.nav-cta:hover { background: var(--teal-light); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

.nav-mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 999; box-shadow: 0 4px 20px rgba(6,47,93,0.08); }
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-mobile-menu ul li a { display: block; padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--border); }
.nav-mobile-menu ul li:last-child a { border-bottom: none; }
.nav-mobile-menu .nav-mobile-cta { display: block; text-align: center; background: var(--teal); color: var(--white); padding: 14px; border-radius: 6px; font-weight: 600; margin-top: 16px; }

/* ========== BUTTONS ========== */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--white); padding: 14px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.btn-primary:hover { background: var(--teal-light); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); padding: 13px 26px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ========== SECTION HEADINGS ========== */
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.section-title { font-size: 36px; margin-bottom: 16px; letter-spacing: -0.3px; }
.section-subtitle { font-size: 18px; color: var(--slate); max-width: 640px; line-height: 1.7; }

/* ========== HERO ========== */
/* Each city page sets --hero-image inline. The scrim is angled so the text side
   stays dark enough for white type while the skyline still reads on the right. */
.city-hero {
    position: relative;
    padding: 132px 0 72px;
    color: var(--white);
    background:
        linear-gradient(100deg, rgba(6,47,93,0.92) 0%, rgba(6,47,93,0.82) 46%, rgba(6,47,93,0.58) 72%, rgba(6,47,93,0.44) 100%),
        var(--hero-image, url('/assets/kodex-werbebild.png')) center 58%/cover no-repeat;
}
.city-hero .container { max-width: 860px; position: relative; z-index: 1; }

/* Attribution required by the Commons licences; kept quiet but legible. */
.hero-credit {
    position: absolute;
    right: 16px;
    bottom: 10px;
    z-index: 2;
    max-width: 46%;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 3px rgba(0,0,0,0.65);   /* sits over the bright side of the photo */
}
.hero-credit a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 2px; }
.hero-credit a:hover { color: var(--white); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.city-hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal-bright); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.city-hero h1 { font-size: 46px; letter-spacing: -0.5px; margin-bottom: 20px; color: var(--white); }
.city-hero h1 span { color: var(--teal-bright); }
.city-hero p { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 680px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== TRUST STRIP ========== */
.trust-strip { padding: 28px 0; background: var(--mist); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-strip img { height: 30px; width: auto; opacity: 0.65; filter: grayscale(100%); transition: opacity 0.2s, filter 0.2s; }
.trust-strip img:hover { opacity: 1; filter: grayscale(0); }
/* Near-square badges need more height than wordmarks to read at the same weight. */
.trust-strip img.trust-badge { height: 46px; }

/* ========== MARKET ========== */
.city-market { padding: 96px 0; }
.market-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.market-text p { font-size: 17px; color: var(--slate); line-height: 1.8; }
.sector-list { display: flex; flex-direction: column; gap: 18px; }
.sector-card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s; }
.sector-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(12,122,131,0.08); }
.sector-icon { width: 44px; height: 44px; min-width: 44px; background: var(--mist); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.sector-icon svg { width: 22px; height: 22px; }
.sector-card h3 { font-size: 17px; margin-bottom: 6px; }
.sector-card p { font-size: 15px; color: var(--slate); line-height: 1.7; }

/* ========== SERVICES ========== */
.city-services { padding: 96px 0; background: var(--mist); }
.city-services .section-title, .city-services .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.city-services .section-subtitle { margin-bottom: 52px; }
.city-services .section-head { text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: block; padding: 32px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.service-card:hover { border-color: var(--teal); box-shadow: 0 6px 24px rgba(12,122,131,0.1); transform: translateY(-2px); }
.service-icon { width: 46px; height: 46px; background: var(--mist); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 18px; }
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--slate); line-height: 1.7; margin-bottom: 14px; }
.service-more { font-size: 14px; font-weight: 600; color: var(--teal); }

/* ========== WHY (NAVY) ========== */
.city-why { padding: 96px 0; background: var(--navy); color: var(--white); }
.city-why .section-label { color: rgba(255,255,255,0.5); }
.city-why .section-title { color: var(--white); }
.city-why .section-subtitle { color: rgba(255,255,255,0.6); margin-bottom: 52px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-item { display: flex; gap: 16px; padding: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; transition: background 0.3s, border-color 0.3s; }
.why-item:hover { background: rgba(255,255,255,0.08); border-color: var(--teal); }
.why-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(12,122,131,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal); }
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 18px; color: var(--white); margin-bottom: 6px; }
.why-item p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ========== PROCESS ========== */
.city-process { padding: 96px 0; }
.city-process .section-title { text-align: center; margin-bottom: 52px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: center; padding: 28px 20px; position: relative; }
.process-number { font-family: 'Sora', sans-serif; font-size: 46px; font-weight: 700; color: var(--mist); margin-bottom: 14px; }
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--slate); line-height: 1.7; }
.process-step:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -16px; width: 32px; height: 2px; background: var(--border); }

/* ========== FAQ ========== */
.city-faq { padding: 96px 0; background: var(--mist); }
.city-faq .section-title { text-align: center; margin-bottom: 44px; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--teal); line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 20px 26px 24px; font-size: 15px; color: var(--slate); line-height: 1.8; }

/* ========== CONTACT FORM ========== */
/* The nav is fixed at 72px — without this the anchor jump hides the heading. */
.city-contact { padding: 96px 0; scroll-margin-top: 88px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-intro .section-subtitle { margin-bottom: 28px; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; gap: 12px; font-size: 15px; color: var(--slate); line-height: 1.6; }
.contact-points svg { width: 20px; height: 20px; min-width: 20px; color: var(--teal); margin-top: 2px; }
.form-card { background: var(--mist); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--navy); }
.form-group label .required { color: var(--teal); }
.form-group input, .form-group textarea, .form-group select { padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--navy); background: var(--white); transition: border-color 0.2s; outline: none; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #B0B8C4; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--slate); line-height: 1.6; margin-bottom: 18px; }
.form-consent input { width: 16px; height: 16px; min-width: 16px; margin-top: 3px; accent-color: var(--teal); }
.form-consent a { color: var(--teal); font-weight: 500; text-decoration: underline; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: var(--white); padding: 14px 32px; border-radius: 6px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; font-family: 'Inter', sans-serif; width: 100%; }
.form-submit:hover:not(:disabled) { background: var(--teal-light); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit svg { width: 18px; height: 18px; }
.form-error { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FECACA; color: #B42318; font-size: 14px; }

.success-state { text-align: center; padding: 40px 24px; background: var(--mist); border: 1px solid var(--border); border-radius: 16px; }
.success-icon { width: 72px; height: 72px; background: rgba(12,122,131,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: var(--teal); }
.success-icon svg { width: 36px; height: 36px; }
.success-state h2 { font-size: 28px; margin-bottom: 12px; }
.success-state p { font-size: 16px; color: var(--slate); max-width: 420px; margin: 0 auto 26px; line-height: 1.7; }
.success-state a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; font-size: 15px; }

/* ========== NEARBY LOCATIONS ========== */
.city-near { padding: 72px 0 96px; background: var(--mist); }
.city-near h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.near-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.near-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--navy); transition: border-color 0.2s, color 0.2s; }
.near-links a:hover { border-color: var(--teal); color: var(--teal); }
.near-all { display: block; text-align: center; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--teal); }

/* ========== LOCATIONS OVERVIEW ========== */
.locations-hero { padding: 132px 0 60px; background: var(--mist); text-align: center; }
.locations-hero h1 { font-size: 46px; letter-spacing: -0.5px; margin-bottom: 16px; }
.locations-hero h1 span { color: var(--teal); }
.locations-hero p { font-size: 18px; color: var(--slate); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.locations-list { padding: 72px 0 96px; }
.locations-group { margin-bottom: 52px; }
.locations-group h2 { font-size: 20px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location-card { padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.location-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(12,122,131,0.08); transform: translateY(-2px); }
.location-card h3 { font-size: 17px; margin-bottom: 4px; }
.location-card span { font-size: 13px; color: var(--slate); }

/* ========== FOOTER ========== */
.footer { padding: 64px 0 32px; background: #041e3a; color: rgba(255,255,255,0.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-logo { height: 28px; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 16px; flex-wrap: wrap; }

/* ========== LANG SWITCH ========== */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch a { font-size: 13px; font-weight: 500; color: var(--slate); transition: color 0.2s; cursor: pointer; }
.lang-switch a.active { font-weight: 700; color: var(--teal); }
.lang-switch a:hover { color: var(--teal); }
.lang-divider { color: var(--slate); font-size: 13px; opacity: 0.5; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .city-hero h1, .locations-hero h1 { font-size: 38px; }
    .market-layout { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step::after { display: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .locations-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .city-hero { padding: 112px 0 56px; }
    /* Text spans the full width here, so the angled scrim would leave the right
       edge too bright — swap it for an even, heavier one. */
    .city-hero {
        background-image:
            linear-gradient(rgba(6,47,93,0.90), rgba(6,47,93,0.93)),
            var(--hero-image, url('/assets/kodex-werbebild.png'));
    }
    .hero-credit { position: static; max-width: none; text-align: left; margin-top: 24px; padding: 0 24px; }
    .city-hero h1, .locations-hero h1 { font-size: 30px; }
    .city-hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { justify-content: center; }
    .section-title { font-size: 26px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-strip .container { gap: 28px; }
    .trust-strip img { height: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
