/* Sonnenkorn – fiktive Bäckerei-Demoseite.
   Nur CSS, keine externen Schriften, Bilder oder Skripte. Mobil zuerst. */

:root {
  --hintergrund: #FFF9F3;      /* warmes Cremeweiß */
  --oberflaeche: #FFFFFF;      /* Karten */
  --text: #3B2A1A;             /* dunkles Braun, Kontrast > 12:1 auf Cremeweiß */
  --text-weich: #6B5138;       /* Kontrast ca. 7:1 */
  --akzent: #B45309;           /* Amber, weiße Schrift darauf ca. 5:1 */
  --akzent-dunkel: #92400E;    /* Links, Fokus, Icons */
  --akzent-hell: #FDE8D0;      /* Icon-Kacheln */
  --linie: #F0DFC9;
  --radius: 16px;
  --schatten: 0 6px 24px rgba(59, 42, 26, 0.08);
  --schatten-stark: 0 14px 34px rgba(59, 42, 26, 0.14);
  --max: 1080px;
}

/* ---------- Basis ---------- */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--hintergrund);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--akzent-dunkel);
}

/* Sichtbarer Fokus für alle Links und Knöpfe (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--akzent-dunkel);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Skip-Link ---------- */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: #FFF9F3;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transform: translateY(-250%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden; /* damit die Deko-Formen kein waagerechtes Scrollen erzeugen */
  background: linear-gradient(155deg, #FFF7EC 0%, #FBE3C2 55%, #F6D3A0 100%);
}

/* zarter Ring unten links */
.hero::before {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(146, 64, 14, 0.25);
  border-radius: 50%;
}

/* weiche "Sonne" oben rechts */
.hero::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #FFE9BD 0%, #F6BE6A 70%);
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.nav-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.1rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.marke-icon {
  width: 26px;
  height: 26px;
  color: var(--akzent);
}

.hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.hero nav a {
  font-weight: 600;
  text-decoration: none;
}

.hero nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-inhalt {
  max-width: 42rem;
  padding-block: clamp(3.5rem, 10vw, 6.5rem) clamp(4.5rem, 13vw, 8rem);
}

.auge {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--akzent-dunkel);
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.4rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 38rem;
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
}

.knopf {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  background: var(--akzent);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.30);
}

.knopf:hover {
  background: var(--akzent-dunkel);
}

/* ---------- Abschnitte ---------- */

.bereich {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.bereich h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

.bereichs-intro,
.langtext {
  max-width: 44rem;
  color: var(--text-weich);
}

.bereichs-intro {
  margin-bottom: 0.5rem;
}

/* ---------- Karten (Sortiment) ---------- */

.karten {
  display: grid;
  grid-template-columns: 1fr; /* untereinander auf dem Handy */
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .karten {
    grid-template-columns: repeat(3, 1fr);
  }
}

.karte {
  background: var(--oberflaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--schatten);
}

.karte h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.karte p {
  margin: 0;
  color: var(--text-weich);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  background: var(--akzent-hell);
  color: var(--akzent-dunkel);
  border-radius: 14px;
}

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

/* ---------- Öffnungszeiten & Kontakt ---------- */

.spalten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .spalten {
    grid-template-columns: 1fr 1fr;
  }
}

.zeiten {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zeiten li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--linie);
}

.zeiten li:last-child {
  border-bottom: 0;
}

.zeiten li span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

address {
  font-style: normal;
  color: var(--text-weich);
}

.hinweis {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-weich);
}

/* ---------- Fuß ---------- */

.fuss {
  padding-block: 1.75rem;
  background: var(--text);
  color: #F7E9D7;
  font-size: 0.95rem;
}

.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.fuss p {
  margin: 0;
}

.fuss a {
  color: #FFD9A0;
}

.fuss a:focus-visible {
  outline-color: #FFD9A0;
}

/* ---------- Animationen nur ohne "reduced motion" ---------- */

@keyframes sonne {
  from { transform: translateY(0); }
  to   { transform: translateY(16px); }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero::after {
    animation: sonne 9s ease-in-out infinite alternate;
  }

  .karte {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

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