/* ============================================================
   CORAL DOCTORS — coral.css
   Eigenständiges Stylesheet für coraldoctors.org.
   Gleiche Schriften & Token-Architektur wie Inselnauten Welt,
   aber eigene Coral-Doctors-Farbwelt als Standard.
   ============================================================ */

@font-face{
  font-family:'Fraunces';
  src:url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight:400 600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Fraunces';
  src:url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight:400 500; font-style:italic; font-display:swap;
}
@font-face{
  font-family:'DM Sans';
  src:url('../fonts/dmsans-var.woff2') format('woff2');
  font-weight:400 700; font-style:normal; font-display:swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --cd-yellow:     #F3DD02;
  --cd-yellow-dim: #d4c102;
  --cd-blue:       #1d3a5f;
  --cd-blue-mid:   #3571B2;
  --cd-blue-light: #4a8fd4;
  --cd-teal:       #007789;
  --cd-ocean:      #035576;
  --cd-sand:       #C5AD6E;
  --cd-sand-deep:  #A8915A;

  --color-heading:      var(--cd-ocean);
  --color-heading-deep: var(--cd-blue);
  --color-text:         #2a3a4a;
  --color-text-soft:    #5a6a7a;
  --color-primary:      var(--cd-blue-mid);
  --color-primary-hov:  var(--cd-blue-light);
  --color-accent:       var(--cd-yellow);
  --color-accent-deep:  var(--cd-yellow-dim);

  --color-bg:           #FCFCFC;
  --color-surface:      #FFFFFF;
  --color-surface-cool: #e8f2f6;
  --color-surface-dark: var(--cd-blue);
  --color-line:         #e0e6ec;
  --color-line-cool:    #c5d8e0;

  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text:'DM Sans', system-ui, -apple-system, sans-serif;

  --fs-xs:.78rem; --fs-sm:.9rem; --fs-base:1.05rem; --fs-md:1.18rem;
  --fs-lg:1.5rem; --fs-xl:2rem; --fs-2xl:2.8rem; --fs-3xl:3.8rem;

  --r-sm:6px; --r-md:14px; --r-lg:24px; --r-pill:999px;
  --shadow-card:0 4px 24px -8px rgba(29,58,95,.14);
  --shadow-soft:0 12px 44px -14px rgba(29,58,95,.25);
  --maxw:1080px;
  --gutter:24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{
  font-family:var(--font-text);
  font-size:var(--fs-base);
  line-height:1.65;
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--color-primary);text-decoration:none}
a:hover{color:var(--color-primary-hov)}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--color-heading);
  line-height:1.2;
  font-weight:500;
  text-wrap:balance;
}
h1{font-size:var(--fs-3xl)}
h2{font-size:var(--fs-2xl)}
h3{font-size:var(--fs-lg)}
h4{font-size:var(--fs-md)}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}

.section{padding:clamp(3rem,8vw,6rem) 0}
.section--cool{background:var(--color-surface-cool)}
.section--dark{
  background:linear-gradient(155deg, var(--cd-blue), var(--cd-ocean) 70%);
  color:#fff;
}
.section--dark h2,
.section--dark h3,
.section--dark h4{color:#fff}
.section--dark .kicker{color:var(--cd-yellow)}

.kicker{
  display:block;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:var(--fs-xs);
  font-weight:600;
  color:var(--cd-blue-mid);
  margin-bottom:10px;
}

.lead{
  font-size:var(--fs-md);
  color:var(--color-text-soft);
  max-width:58ch;
  line-height:1.7;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(29,58,95,.97);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:0 var(--gutter);
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:var(--maxw);
  margin:0 auto;
  height:64px;
}
.site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:500;
  text-decoration:none;
  min-width:0;
}
.site-logo img{height:36px;width:auto;flex:0 0 auto}
.site-logo span{white-space:nowrap}
/* Stand 24.07.2026 (Nutzer-Feedback "Katastrophe" auf Mobile): der
   Schriftzug "Coral Doctors" brach bei knappem Platz mitten im Wort auf
   zwei Zeilen um (kein white-space:nowrap, kein min-width:0 am Flex-Item),
   das sprengte die feste 64px-Header-Höhe und sah kaputt aus. Gleiches
   Schrumpf-Prinzip wie .brand-logo bei strandhaus-astro/rundreise-astro:
   Schriftgröße schrumpft, Rest wird bei extrem schmalen Geräten abgeschnitten
   statt umzubrechen. */
@media(max-width:820px){
  .site-logo{flex:1 1 auto}
  .site-logo span{
    font-size:clamp(.75rem,3.4vw,1.05rem);
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
  }
}

/* Sprungmarken-Nav (.nav-links/.burger) Stand 24.07.2026 wieder entfernt,
   siehe Kommentar in BaseLayout.astro — Coral Doctors ist ein OnePager wie
   strandhaus-astro/rundreise-astro, die haben ebenfalls keine Jump-Nav im
   Header. "Get in Touch" lebt jetzt als .header-cta (siehe unten). */
.header-cta{
  display:inline-flex;align-items:center;white-space:nowrap;
  font-weight:700;font-size:var(--fs-sm);
  padding:.55em 1.1em;border-radius:999px;
  background:var(--cd-yellow);color:var(--cd-blue);
  transition:background .2s;
}
.header-cta:hover{background:var(--cd-yellow-dim)}
/* Stand 24.07.2026 (Nutzer-Feedback): auf schmalen Bildschirmen wird der
   Button-Text auf "Contact"/"Kontakt" gekürzt, um Platz für den Schriftzug
   zu schaffen. Zwei separate Spans statt CSS-Textkürzung, damit beide
   Varianten weiterhin eigenständig über data-i18n übersetzbar bleiben. */
.header-cta__short{display:none}
@media(max-width:480px){
  .header-cta__full{display:none}
  .header-cta__short{display:inline}
}

/* ============================================================
   MARKEN-MENÜ + SPRACHUMSCHALTER (Header-Vereinheitlichung Stand 24.07.2026)
   Gleiches Muster wie strandhaus-astro/rundreise-astro (.brand-menu-toggle/
   .brand-menu/.langswitch), hier mit Coral-Doctors-eigenen Farbtokens statt
   dem geteilten brand.css. Bewusst eigene Regeln statt Wiederverwendung:
   Coral Doctors pflegt sein CSS eigenständig (siehe Marken & Rollen in der
   Projekt-CLAUDE.md), Drift-Risiko ist hier akzeptiert wie überall sonst.
   ============================================================ */
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.brand-menu-toggle{display:flex;align-items:center;gap:8px;height:36px;
  padding:0 16px 0 14px;border-radius:999px;border:0;cursor:pointer;
  color:#fff;background:rgba(255,255,255,.15);flex:0 0 auto}
.brand-menu-toggle svg{width:18px;height:18px;flex:0 0 auto}
.brand-menu-toggle__label{font-size:var(--fs-sm);font-weight:600;white-space:nowrap;
  font-family:var(--font-text)}
.brand-menu-toggle:hover{background:rgba(255,255,255,.25);color:var(--cd-yellow)}
.brand-menu-toggle[aria-expanded="true"]{background:var(--cd-yellow);color:var(--cd-blue)}
@media(max-width:820px){
  .brand-menu-toggle{width:36px;height:36px;padding:0;justify-content:center}
  .brand-menu-toggle__label{display:none}
}
.brand-menu{position:absolute;top:100%;right:var(--gutter);margin-top:8px;
  background:var(--cd-blue);border-radius:14px;padding:16px 18px;
  box-shadow:0 16px 32px rgba(2,20,28,.35);min-width:220px;z-index:110}
.brand-menu__label{font-size:var(--fs-xs);text-transform:uppercase;
  letter-spacing:.08em;color:rgba(255,255,255,.5);margin-bottom:10px}
.brand-menu ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.brand-menu a{color:rgba(255,255,255,.85);font-size:var(--fs-sm);font-weight:500}
.brand-menu a:hover{color:var(--cd-yellow)}
.nav-link--current{display:inline-flex;align-items:center;gap:6px;
  color:var(--cd-yellow);font-size:var(--fs-sm);font-weight:600}
.nav-link--current::after{content:"";width:5px;height:5px;border-radius:50%;
  background:var(--cd-yellow)}
@media(max-width:820px){.brand-menu{left:12px;right:12px;min-width:0}}

.langswitch{display:flex;gap:4px;background:rgba(255,255,255,.15);
  border-radius:999px;padding:3px;flex:0 0 auto}
.langswitch__btn{border:0;background:transparent;color:rgba(255,255,255,.75);
  font-family:var(--font-text);font-size:var(--fs-xs);font-weight:700;
  letter-spacing:.04em;padding:5px 9px;border-radius:999px;
  cursor:pointer;transition:background .15s,color .15s}
.langswitch__btn:hover{color:#fff}
.langswitch__btn.is-active{background:var(--cd-yellow);color:var(--cd-blue)}

/* Unter 480px zusätzlich die restlichen Header-Elemente kompakter, damit
   für den Schriftzug "Coral Doctors" genug Platz bleibt und er nicht in
   "Coral …" abgeschnitten wird (Nutzer-Feedback). Muss NACH den
   Basis-Regeln für .header-cta/.langswitch stehen, sonst gewinnt die
   spätere Basis-Regel trotz gleicher Spezifität durch ihre Position im
   Stylesheet (gleiche Falle wie schon einmal bei .header-search-toggle in
   inselnauten-astro dokumentiert). */
@media(max-width:480px){
  .header-actions{gap:6px}
  .langswitch{padding:2px}
  .langswitch__btn{padding:4px 7px}
  .header-cta{padding:.45em .8em}
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  background:linear-gradient(155deg, var(--cd-blue), var(--cd-ocean) 70%);
  color:#fff;
  padding:clamp(4rem,12vw,8rem) 0 clamp(3rem,8vw,5rem);
  overflow:hidden;
}
/* Hintergrundvideo (Stand 27.07.2026): liegt als <video> hinter einem
   Verlaufs-Scrim, beides absolut positioniert innerhalb des textgesteuert
   hohen .hero (kein festes Seitenverhältnis, siehe Padding oben). Der
   Gradient auf .hero selbst bleibt als Fallback erhalten, falls das Video
   nicht lädt. */
.hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero__scrim{position:absolute;inset:0;background:linear-gradient(155deg, rgba(29,58,95,.82), rgba(3,85,118,.82) 70%);z-index:0}
.hero__inner{position:relative;z-index:1}
.hero h1{color:#fff;margin-bottom:18px}
.hero .kicker{color:var(--cd-yellow);margin-bottom:16px}
.hero p{
  font-size:var(--fs-md);
  color:rgba(255,255,255,.9);
  max-width:52ch;
  line-height:1.7;
}
.hero-mark{
  position:absolute;
  right:5%;
  bottom:-20px;
  width:clamp(180px,26vw,340px);
  opacity:.2;
  pointer-events:none;
  transform:rotate(8deg);
}
.hero-actions{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--font-text);
  font-size:var(--fs-sm);
  font-weight:600;
  padding:.85em 1.8em;
  border-radius:var(--r-pill);
  border:none;
  cursor:pointer;
  transition:background .2s, transform .15s, box-shadow .2s;
  text-decoration:none;
}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}

.btn--accent{background:var(--cd-yellow);color:var(--cd-blue)}
.btn--accent:hover{background:var(--cd-yellow-dim);color:var(--cd-blue)}

.btn--outline{
  background:transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,.35);
}
.btn--outline:hover{border-color:#fff;color:#fff}

.btn--primary{background:var(--color-primary);color:#fff}
.btn--primary:hover{background:var(--color-primary-hov);color:#fff}

/* ============================================================
   CARDS / GRID
   ============================================================ */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));
  gap:28px;
}

.card{
  background:var(--color-surface);
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:transform .2s, box-shadow .2s;
  display:flex;
  flex-direction:column;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft)}
.card__img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.card__body{padding:28px;flex:1;display:flex;flex-direction:column}
.card__body h3{margin-bottom:10px}
.card__body p{color:var(--color-text-soft);flex:1}

/* Number card (for stats / involvement) */
.num-card{
  text-align:center;
  padding:40px 28px;
  background:var(--color-surface);
  border-radius:var(--r-lg);
  border:1px solid var(--color-line);
  transition:transform .2s, box-shadow .2s;
}
.num-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card)}
.num-card__icon{
  width:56px;height:56px;
  margin:0 auto 18px;
  color:var(--cd-blue-mid);
}
.num-card h3{font-size:var(--fs-lg);margin-bottom:8px}
.num-card p{color:var(--color-text-soft);font-size:var(--fs-sm)}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline{
  position:relative;
  padding-left:40px;
}
.timeline::before{
  content:'';
  position:absolute;
  left:14px;top:8px;bottom:8px;
  width:2px;
  background:linear-gradient(to bottom,var(--cd-blue-mid),var(--cd-yellow));
  border-radius:1px;
}
.timeline__item{
  position:relative;
  margin-bottom:40px;
}
.timeline__item::before{
  content:'';
  position:absolute;
  left:-33px;top:6px;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--cd-yellow);
  border:3px solid var(--color-surface);
  box-shadow:0 0 0 2px var(--cd-blue-mid);
}
.timeline__date{
  display:inline-block;
  font-size:var(--fs-xs);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--cd-blue-mid);
  margin-bottom:6px;
}
.timeline__item h3{font-size:var(--fs-lg);margin-bottom:8px}
.timeline__item p{
  color:var(--color-text-soft);
  max-width:60ch;
  line-height:1.7;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partner-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(32px,6vw,64px);
  flex-wrap:wrap;
  padding:20px 0;
}
.partner-strip img{
  height:48px;
  width:auto;
  filter:grayscale(1) opacity(.5);
  transition:filter .3s;
}
.partner-strip img:hover{filter:grayscale(0) opacity(1)}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:32px;
}
.team-member{text-align:center}
.team-member__photo{
  width:160px;height:160px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 18px;
  border:4px solid var(--color-surface-cool);
}
.team-member h3{font-size:var(--fs-md);margin-bottom:4px}
.team-member p{font-size:var(--fs-sm);color:var(--color-text-soft)}

/* ============================================================
   CTA BLOCKS
   ============================================================ */
.cta-block{
  text-align:center;
  padding:clamp(3rem,8vw,5rem) var(--gutter);
  background:linear-gradient(155deg, var(--cd-blue), var(--cd-ocean) 70%);
  color:#fff;
}
.cta-block h2{color:#fff;margin-bottom:14px}
.cta-block p{
  color:rgba(255,255,255,.85);
  max-width:50ch;
  margin:0 auto 28px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form{max-width:580px}
.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}
.form-group label{
  font-size:var(--fs-sm);
  font-weight:600;
  color:var(--color-heading);
}
.form-group input,
.form-group select,
.form-group textarea{
  padding:.85em 1.1em;
  border-radius:var(--r-sm);
  border:1px solid var(--color-line);
  font-family:var(--font-text);
  font-size:var(--fs-sm);
  color:var(--color-text);
  background:var(--color-surface);
  transition:border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color:var(--cd-blue-mid);
}
.form-group textarea{min-height:140px;resize:vertical}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--cd-blue);
  color:rgba(255,255,255,.7);
  padding:clamp(2rem,5vw,3.5rem) var(--gutter) 1.5rem;
  font-size:var(--fs-sm);
}
.footer__inner{
  max-width:var(--maxw);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  justify-content:space-between;
  align-items:flex-start;
}
.footer__brand{display:flex;align-items:center;gap:10px}
.footer__brand img{height:32px;width:auto}
.footer__brand span{color:#fff;font-family:var(--font-display);font-weight:500}
.footer__links{display:flex;gap:20px;flex-wrap:wrap}
.footer__links a{color:rgba(255,255,255,.7);transition:color .2s}
.footer__links a:hover{color:#fff}
.footer__copy{
  width:100%;
  text-align:center;
  padding-top:24px;
  margin-top:16px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:var(--fs-xs);
}

/* Social */
.social-links{display:flex;gap:12px}
.social-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  transition:background .2s;
}
.social-links a:hover{background:rgba(255,255,255,.2)}
.social-links svg{width:20px;height:20px}

/* ============================================================
   IMAGE PLACEHOLDER (no content photos yet)
   ============================================================ */
.img-placeholder{
  position:relative;
  aspect-ratio:var(--ph-ratio, 4/3);
  border-radius:var(--r-lg);
  background:linear-gradient(155deg, var(--cd-blue), var(--cd-teal) 70%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.img-placeholder svg{width:56px;height:56px;color:rgba(255,255,255,.3)}
.img-placeholder__badge{
  position:absolute;
  bottom:14px;left:14px;
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:var(--fs-xs);
  font-weight:600;
  padding:5px 14px;
  border-radius:var(--r-pill);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));
  gap:12px;
}
.gallery-grid img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:var(--r-md);
  transition:transform .3s;
}
.gallery-grid img:hover{transform:scale(1.03)}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center{text-align:center}
.mt-sm{margin-top:16px}
.mt-md{margin-top:32px}
.mt-lg{margin-top:48px}
.mb-md{margin-bottom:32px}
.max-prose{max-width:68ch}

/* Two-col layout */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(28px,5vw,56px);
  align-items:center;
}
@media(max-width:700px){
  .split{grid-template-columns:1fr}
}

/* Accent divider */
.divider{
  width:60px;height:3px;
  background:var(--cd-yellow);
  border-radius:2px;
  margin:20px 0;
}

/* Pill / badge */
.badge{
  display:inline-block;
  font-size:var(--fs-xs);
  font-weight:700;
  padding:4px 14px;
  border-radius:var(--r-pill);
  background:rgba(53,113,178,.1);
  color:var(--cd-blue-mid);
}
