/* ============================================
   ARZTDATA DESIGN SYSTEM
   Variablen, Reset, Typografie, Grid, Formulare
   ============================================ */

:root {
    /* Farben */
    --color-red-primary: #C31E24;
    --color-red-hover: #A01820;
    --color-red-light: #F8EAEA;

    --color-white: #FFFFFF;
    --color-gray-50: #F9F9F9;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #ffffff;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #999999;
    --color-gray-600: #424242;
    --color-gray-900: #1A1A1A;

    /* Haarlinien (Rahmen, Trenner) - separat von den Flaechenfarben,
       damit Eingabefelder und Trennlinien sichtbar bleiben. */
    --color-border: #E8E8E8;

    /* Abstände */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Effekte */
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* verhindert Text-Aufblähen im iOS-Querformat */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-600);
    background-color: var(--color-gray-50);
    /* lange Wörter/URLs brechen um statt seitlich rauszulaufen */
    overflow-wrap: break-word;
}

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

/* ===== TYPOGRAFIE =====
   Gestufte Skala: jede Ebene deutlich kleiner als die
   vorige, Schnitt 600 statt 700 - ruhiger und besser
   unterscheidbar als eine Seite voller fetter Zeilen. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* Zwischenüberschrift innerhalb eines Abschnitts -
   bewusst leiser als eine Abschnittsüberschrift. */
.content-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-600);
}

a {
    color: black;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-red-hover);
    text-decoration: none;
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin-top: var(--spacing-sm);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1500px; /* gleiche Breite wie Navbar und Footer */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    overflow-x: clip; /* verhindert Scrollbalken durch das 100vw-Hero */
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.col-md-9 {
    grid-column: span 9;
    min-width: 0; /* verhindert, dass breite Inhalte das Grid sprengen */
}

.col-md-3 {
    grid-column: span 3;
    min-width: 0;
}

main {
    width: 100%;
    max-width: none;
    min-height: 60vh;
    padding-top: 0; /* intro-section liegt direkt unter der Navbar */
}

@media (max-width: 1200px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-md); }
    .row { gap: var(--spacing-md); }
    .col-md-9, .col-md-3 { grid-column: span 12; }
    main { padding: var(--spacing-lg) 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--spacing-sm); }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
}

/* ===== INTRO / HERO =====
   Liegt innerhalb von .container, also auf 1400px begrenzt.

   Das Foto wird pro Seite ueber --hero-image gesetzt:
   <section class="intro-section" style="--hero-image: url('/public/img/meeting.jpg')">
   Ohne Angabe greift title-bild.jpg.

   --hero-overlay steuert den weissen Schleier ueber dem Foto:
   0 = Foto pur, 1 = komplett weiss. Steht niedrig, weil die
   Motive bereits aufgehellt vorliegen. Hier zentral aendern. */
.intro-section {
    position: relative;
    /* Hero immer über die volle Breite, unabhängig von Eltern-Containern */
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    background-color: var(--color-gray-100);
    background-image:
        linear-gradient(to right, rgb(255,255,255) 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.21) 100%),
        var(--hero-image, url('/public/img/adhero03.png'));
    background-repeat: no-repeat, no-repeat;
    background-position: left center, 30% center;
    background-size: cover, cover;

    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: left;
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
}

/* Innerer Wrapper begrenzt die Textbreite */
.intro-section .hero-inner {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

/* Kleines Label oben */
.hero-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

.hero-label::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-red-primary);
    flex-shrink: 0;
}

.intro-section h1 {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    max-width: 720px;
}

/* Der rote kursive Teil in der Überschrift */
.hero-red {
    color: var(--color-red-primary);
}

.intro-section p {
    font-size: 1.2rem;
    max-width: 520px;
    color: var(--color-gray-600);
    line-height: 1.75;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Button-Reihe */
.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-900);
    text-decoration: none;
    transition: color var(--transition-base);
}

.hero-link:hover { color: var(--color-red-primary); }

@media (max-width: 900px) {
    .intro-section {
        min-height: 180px;
        padding: var(--spacing-2xl) 0;
        margin-bottom: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .intro-section {
        min-height: 200px;
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    .intro-section h1 { font-size: 1.875rem; }
    .intro-section p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .intro-section {
        min-height: 280px;
        padding: var(--spacing-xl) 0;
        margin-bottom: var(--spacing-xl);
    }
    .intro-section h1 { font-size: 1.5rem; }
}

/* ===== BILDBAND IM INHALT =====
   Breites Foto zwischen zwei Abschnitten:
   <img class="content-image" src="/public/img/writing.jpg" alt="..."> */
.content-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 900px) {
    .content-image { height: 220px; }
}

@media (max-width: 480px) {
    .content-image {
        height: 170px;
        margin-bottom: var(--spacing-lg);
    }
}

/* ===== FORMULARE ===== */
form { max-width: 800px; }

.form-group { margin-bottom: var(--spacing-xs); }

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 16px; /* unter 16px zoomt iOS beim Fokus hinein */
    background: var(--color-white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: var(--color-gray-300);
    background: var(--color-gray-50);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-red-primary);
    box-shadow: 0 0 0 4px rgba(195, 30, 36, 0.08);
    background: var(--color-white);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox { margin-bottom: var(--spacing-lg); }

.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-red-primary);
}

/* reCAPTCHA – das Widget ist starr 304px breit */
.g-recaptcha {
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.87);
        transform-origin: 0 0;
        height: 66px; /* 76px * 0.87 – verhindert Leerraum darunter */
    }
}

#g-recaptcha-error { margin-bottom: var(--spacing-sm); }

#g-recaptcha-error span {
    color: var(--color-red-primary);
    font-size: 14px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, var(--color-red-primary) 0%, var(--color-red-hover) 100%);
    color: var(--color-white);
    letter-spacing: 0.3px;
    border-radius: 20px;
}

.btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-white);
}

.btn:active { transform: translateY(0); }



/* Dreieckspfeil im Button - greift die Pfeile aus dem Logo auf */
.btn::before {
    content: "";
    width: 0;
    height: 0;
    flex-shrink: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* ===== LISTEN MIT ROTEM PFEIL =====
   <ul class="list-arrow"> ... </ul>
   Dreieck in Markenrot, wie die Pfeile im Logo. */
.list-arrow {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-arrow li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.list-arrow li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0;
    height: 0;
    border-left: 6px solid var(--color-red-primary);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Erklaerzeile unter einem Listenpunkt */
.list-arrow .sub {
    display: block;
    font-weight: 400;
    color: var(--color-gray-600);
}

/* Doppelpfeil fuer "mehr"-Links */
.more-link::after {
    content: "\00bb";
    margin-left: 5px;
}

@media (max-width: 480px) {
    /* volle Breite = besser treffbar auf kleinen Displays */
    .btn { width: 50%; }
}

/* ===== PANELS ===== */
.panel {
    background: var(--color-white);
    border-top: 2px solid var(--color-red-primary);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.panel:hover { box-shadow: var(--shadow-md); }

.panel-title {
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.panel p { margin-bottom: var(--spacing-md); }

@media (max-width: 768px) {
    .panel { padding: var(--spacing-md); }
}

/* ===== ANIMATIONEN REDUZIEREN ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}