/* ==========================================================================
   LEBENS-GEZEITEN — Style-Sheet für die Website eines Trauerredners
   ==========================================================================
   Konzept: Statt klassischer Trauerfarben (Schwarz, Grau, Anthrazit) ein
   warmes Licht-Schema, das an goldene Stunde am Meer erinnert – eine
   Feier des Lebens statt reiner Trauer. Leben verläuft wie Gezeiten:
   in Wellen, mal ruhig, mal bewegt, immer wiederkehrend. Das
   wiederkehrende Wellen-Motiv (siehe .tide-divider) steht sinnbildlich
   für dieses Kommen und Gehen.

   Markenfarbe: Das Logo zeigt einen Baum über Wellen in Navy (#355976)
   auf Creme (#F6EBCD) — dieser Navy-Ton wird hier als eigenständige
   Markenfarbe geführt (Headings, Footer, Logo-Schriftzug) und mit der
   warmen Sand-/Gold-Palette kombiniert, damit die Seite trotz des
   gedeckteren Markentons hell und einladend bleibt statt klassisch-düster.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   2. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben — warm statt klassisch trauervoll */
  --color-bg:            #FBF2E3;  /* warmer Sandton, Basis-Hintergrund */
  --color-bg-card:       #FFFBF3;  /* leicht helleres Warmweiß für Karten */
  --color-bg-warm:       #F5E6D3;  /* dritter Ton für sanfte Sektionswechsel */

  --color-text:          #4A3B3E;  /* warmes Dunkelbraun statt Schwarz, für Fließtext */
  --color-heading:       #24404F;  /* dunkler Navy — direkt vom Logo abgeleitet */
  --color-text-muted:    #7A6A67;  /* gedämpfter Fließtext / Meta-Infos */

  --color-navy:          #355976;  /* Markenfarbe — exakt der Navy-Ton aus dem Logo */
  --color-navy-light:    #AFC6D2;  /* helle Navy-Fläche für Badges/Akzentflächen */
  --color-cream-logo:    #F6EBCD;  /* Creme aus dem Logo — Text/Icons auf Navy-Flächen */

  --color-marigold:      #E3A857;  /* Hauptakzent — Licht, Wärme */
  --color-marigold-dark: #C98C3C;  /* für Hover-Zustände */
  --color-coral:         #E8927E;  /* zweiter Akzent — Leben, Herzlichkeit */
  --color-sage:          #7E9370;  /* dritter Akzent — Ruhe, Natur, Hoffnung */

  --color-border:        #E8D9C3;

  /* Typografie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs:   0.8rem;
  --fs-sm:   0.95rem;
  --fs-base: 1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.9rem;
  --fs-2xl:  2.75rem;
  --fs-3xl:  3.75rem;

  --lh-tight: 1.15;
  --lh-normal: 1.65;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* Radien & Schatten — weich statt kantig */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-full: 999px;
  --shadow-soft: 0 12px 32px -12px rgba(62, 42, 61, 0.18);
  --shadow-hover: 0 18px 40px -14px rgba(62, 42, 61, 0.26);

  --transition: 220ms ease;
}

/* --------------------------------------------------------------------------
   3. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-marigold-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-coral); }

/* Sichtbarer Fokus-Zustand für Barrierefreiheit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   4. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  font-weight: 500;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--fs-3xl); font-weight: 400; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; }

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--color-heading);
  border-left: 3px solid var(--color-navy);
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
}

/* --------------------------------------------------------------------------
   5. Layout-Grundgerüst
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

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

.grid {
  display: grid;
  gap: var(--space-md);
}

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

@media (max-width: 780px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .section { padding-block: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-navy);
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.nav__links a { color: var(--color-text); }
.nav__links a:hover { color: var(--color-marigold-dark); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding-block: var(--space-xl);
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.hero .lead {
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   8. Signatur-Element: Tide-Divider
   Symbolisiert die Gezeiten des Lebens — ein wiederkehrendes Auf und Ab
   statt einer harten Trennlinie. Einsatz zwischen zwei Sektionen.
   -------------------------------------------------------------------------- */
.tide-divider {
  width: 85%;
  height: 90px;
  margin: 0 auto;
  overflow: hidden;
}

.tide-divider svg {
  width: 100%;
  height: 100%;
}

.tide-divider .tide-path {
  fill: none;
  stroke: url(#lebens-gezeiten-gradient); /* Verlauf im HTML: Navy → Marigold, wie Wellen im Morgenlicht */
  stroke-width: 3;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   9. Karten (z.B. Angebote, Leistungen)
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-marigold);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   10. Badges — z.B. für Angebots-Tags ("Trauerrede", "Urnenbeisetzung")
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  background: var(--color-navy-light);
  color: var(--color-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   11. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-marigold);
  color: var(--color-heading);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: var(--color-marigold-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn--ghost:hover {
  background: var(--color-navy);
  color: var(--color-cream-logo);
}

/* --------------------------------------------------------------------------
   12. Zitat- / Stimmen-Block (z.B. Rückmeldungen von Angehörigen)
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--color-coral);
}

.testimonial__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-sage);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   13. Formular (Kontaktaufnahme)
   -------------------------------------------------------------------------- */
label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
}

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

input:focus, textarea:focus {
  border-color: var(--color-marigold);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-navy);
  color: var(--color-cream-logo);
  padding-block: var(--space-lg);
  text-align: center;
}

.footer a { color: var(--color-marigold); }
.footer a:hover { color: var(--color-coral); }
