/* ==========================================================================
   IL SOLE – Website (Stil „mediterran“, schlanke Fassung)
   Warme Sand- und Terrakottatöne, Logo in Grün mit Sonne.
   Alle Schriften liegen lokal im Ordner fonts/ (keine externen Server).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #fbf4ea;
  --sand-deep: #f4e6d2;
  --cream: #fffaf3;
  --terracotta: #b84a32;
  --terracotta-dark: #973a26;
  --sun: #f2a93b;
  --sun-light: #fcd581;
  --logo-gruen: #009600;
  --ink: #2b2118;
  --muted: #6b5a4b;
  --line: #eadbc6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 24px;
  --shadow: 0 1px 2px rgba(43, 33, 24, 0.06), 0 18px 40px -18px rgba(43, 33, 24, 0.3);
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle 640px at 50% 40px, rgba(252, 213, 129, 0.55), rgba(252, 213, 129, 0) 70%) no-repeat,
    var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Logo: „IL S☀LE“ – alle Buchstaben gleich groß ---------- */

.logo-wort {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--logo-gruen);
  white-space: nowrap;
}

.logo-o {
  width: 1.08em;
  height: 1.08em;
  margin: 0 -0.02em;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo .logo-wort {
  font-size: 1.85rem;
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(184, 74, 50, 0.75);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--sand);
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 234, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kopf.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(43, 33, 24, 0.6);
}

.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
}

.nav {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--sand-deep);
}

.nav a[aria-current="page"] {
  background: var(--terracotta);
  color: #fff;
}

/* ---------- Titelseite ---------- */

.titel {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.titel-logo {
  margin: 0;
  font-size: clamp(3.4rem, 10vw + 0.5rem, 8rem);
  line-height: 1;
}

.titel-logo .logo-wort {
  filter: drop-shadow(0 6px 16px rgba(0, 120, 0, 0.12));
}

.titel-zeile {
  margin: 1.1rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.9rem);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.titel-zeile .trenner {
  margin: 0 0.35em;
  color: var(--sun);
}

.titel-zeile .begriff {
  white-space: nowrap;
}

/* Einsatzgebiet unter der Leistungszeile */
.titel-region {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  color: var(--ink);
}

.titel-region .icon {
  color: var(--terracotta);
}

@media (max-width: 560px) {
  .titel-zeile .trenner {
    display: none;
  }

  .titel-zeile .begriff {
    display: block;
  }

  .logo .logo-wort {
    font-size: 1.5rem;
  }

  .nav a {
    padding: 0.5rem 0.75rem;
  }
}

.bilder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  text-align: left;
}

.bild {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Reiter wie bei einer Mappe, darunter das Foto */
.reiter {
  align-self: flex-start;
  padding: 0.65rem 1.3rem 0.55rem;
  border-radius: 16px 16px 0 0;
  background: var(--terracotta);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.bild-rahmen {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: var(--sand-deep);
  box-shadow: var(--shadow);
}

.bild-rahmen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bild:hover .bild-rahmen img {
  transform: scale(1.04);
}

.bild-stiegenhaus {
  object-position: 45% center;
}

.bild-wiese {
  object-position: 35% center;
}

.bild-gehsteig {
  object-position: 58% center;
}

.titel-aktion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

@media (max-width: 760px) {
  .bilder {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .bild-rahmen {
    aspect-ratio: 2 / 1;
    border-width: 5px;
  }
}

/* ---------- Kontakt ---------- */

.kontakt {
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.kontakt-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--terracotta);
  color: #fff;
}

.kontakt-panel::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -240px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.22;
  pointer-events: none;
}

.kontakt-panel > * {
  position: relative;
}

.kontakt-text h2 {
  font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.2rem);
  color: #fff;
}

.kontakt-text p {
  margin: 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
}

.kontakt-karten {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.karte {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(70, 22, 10, 0.2);
}

.karte {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.karte h3 {
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  color: #fff;
}

.karte-zeile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.35rem 0;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: break-word;
}

.karte-zeile span {
  min-width: 0;
}

.karte-zeile .icon {
  color: var(--sun-light);
}

a.karte-zeile:hover span {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .kontakt-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .kontakt-panel::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .kontakt-panel {
    padding: 2rem 1.1rem;
  }

  .kontakt-karten {
    grid-template-columns: minmax(0, 1fr);
  }

  .karte {
    padding: 1.1rem 1.1rem;
  }

  .karte-zeile {
    font-size: 0.95rem;
  }
}

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

.fuss {
  padding: 2rem 0;
  background: var(--ink);
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.92rem;
}

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

.fuss p {
  margin: 0;
}

.fuss a {
  text-decoration: none;
}

.fuss a:hover {
  color: var(--sun-light);
}

/* ---------- Impressum und Datenschutz ---------- */

.recht {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.recht .container {
  max-width: 780px;
}

.recht h1 {
  font-size: clamp(2.3rem, 3.5vw + 1rem, 3.4rem);
}

.recht h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.recht a {
  color: var(--terracotta);
  font-weight: 600;
}

.fakten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.75rem;
  margin: 0;
}

.fakten dt {
  font-weight: 700;
}

.fakten dd {
  margin: 0;
}

@media (max-width: 560px) {
  .fakten {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .fakten dd {
    margin-bottom: 0.75rem;
  }
}

/* ---------- Sanftes Einblenden ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
