/* GG Objektservice - Hausmeisterservice und Gartenpflege in Wiesbaden
   Ein Stylesheet. Reihenfolge: Schrift, Tokens, Grundlagen, Typografie,
   Header und Menue, Banner, Startseite, Kontaktblock, Fuss, Bewegung. */

/* ----------------------------------------------------------------- Schrift
   Zwei Familien, lokal, variabel, Latin-Subset aus den Fontsource-Paketen
   (npm run schriften). Manrope fuer Ueberschriften, Source Sans 3 fuer
   den Fliesstext. Die Nunito des Logos liegt nur als Pfade im SVG. */

@font-face {
  font-family: 'Manrope';
  src: url('/schriften/manrope-latin.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/schriften/source-sans-3-latin.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ Tokens
   Sechs Farben aus dem Briefing, sonst keine. Weiss nur fuer Schrift und
   Schriftzug auf Dunkelgruen. */

:root {
  --gruen: #1e3a31;
  --gruen-hell: #2f5a4a;
  --grund: #f6f4ef;
  --flaeche: #ece9e2;
  --text: #1f2321;
  --text-2: #5c615e;
  --weiss: #ffffff;
  --linie: rgb(47 90 74 / 0.22);
  --linie-hell: rgb(255 255 255 / 0.22);

  --schrift: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --schrift-titel: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --gr-h1: clamp(2rem, 1.25rem + 2.8vw, 3.25rem);
  --gr-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  --gr-h3: 1.375rem;
  --gr-text: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --gr-meta: 0.9375rem;
  --gr-nav: 1.0625rem;

  --breite: 1200px;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --sektion: clamp(4rem, 8vw, 7rem);
  --spalte: clamp(1.25rem, 2.5vw, 2.5rem);

  --tempo: 180ms;
  --kurve: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--gr-text);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--gruen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--tempo) var(--kurve), text-decoration-color var(--tempo) var(--kurve);
}

a:hover {
  color: var(--gruen-hell);
}

:focus-visible {
  outline: 2px solid var(--gruen);
  outline-offset: 3px;
}

.zum-inhalt {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gruen);
  color: var(--weiss);
  padding: 0.75rem 1.25rem;
}

.zum-inhalt:focus {
  left: var(--rand);
  top: 0.5rem;
}

.bahn {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sektion {
  margin-top: var(--sektion);
}

main > :last-child {
  margin-bottom: var(--sektion);
}

main > .kontaktblock:last-child {
  margin-bottom: 0;
}

.telefon {
  white-space: nowrap;
}

/* -------------------------------------------------------------- Typografie */

h1,
h2,
h3 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  margin: 0 0 0.6em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--gr-h1);
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 24ch;
}

h2 {
  font-size: var(--gr-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 28ch;
}

h3 {
  font-size: var(--gr-h3);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0 0 1.2em;
  max-width: 65ch;
}

strong {
  font-weight: 600;
}

.meta {
  font-size: var(--gr-meta);
  color: var(--text-2);
  line-height: 1.5;
}

.sektion-link {
  margin: 2rem 0 0;
}

.sektion-link a {
  font-family: var(--schrift-titel);
  font-weight: 600;
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------- Header, Menue
   Hell, Logo links, Navigation rechts, scrollt mit. Unter 900 px ein
   <details>-Menue mit drei Linien, das als Fläche unter dem Kopf
   aufklappt; es funktioniert ohne Skript. */

.kopf {
  position: relative;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  z-index: 20;
}

.kopf-bahn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.kopf-logo {
  display: block;
  line-height: 0;
}

.kopf-logo .logo {
  display: block;
  width: auto;
  height: 2.25rem;
}

@media (min-width: 900px) {
  .kopf-bahn {
    padding-block: 1.25rem;
  }

  .kopf-logo .logo {
    height: 2.75rem;
  }
}

.haupt-navigation ul {
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
}

.haupt-navigation a {
  display: inline-block;
  font-family: var(--schrift-titel);
  font-size: var(--gr-nav);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--tempo) var(--kurve), color var(--tempo) var(--kurve);
}

.haupt-navigation a:hover {
  color: var(--gruen-hell);
  border-bottom-color: var(--gruen-hell);
}

.haupt-navigation a[aria-current='page'] {
  border-bottom-color: var(--gruen);
}

.menue {
  flex: none;
}

.menue-knopf {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  padding: 0 11px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.menue-knopf::-webkit-details-marker {
  display: none;
}

.menue-knopf::marker {
  content: '';
}

.menue-linie {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--tempo) var(--kurve), opacity var(--tempo) var(--kurve);
}

.menue[open] .menue-linie:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menue[open] .menue-linie:nth-child(2) {
  opacity: 0;
}

.menue[open] .menue-linie:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menue-inhalt {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
  padding-block: 0.5rem 1.75rem;
  z-index: 30;
}

.menue-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menue-navigation li + li {
  border-top: 1px solid var(--linie);
}

.menue-navigation a {
  display: block;
  padding-block: 0.9rem;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.menue-navigation a:hover {
  color: var(--gruen-hell);
}

.menue-navigation a[aria-current='page'] {
  color: var(--gruen);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.menue-kontakt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}

@media (min-width: 900px) {
  .menue {
    display: none;
  }
}

@media (max-width: 899px) {
  .haupt-navigation {
    display: none;
  }
}

/* ------------------------------------------------------------------ Banner
   Volle Breite, 60 vh mobil, 75 vh ab 900 px. Dunkler Verlauf von unten
   (transparent nach 70 % Dunkelgruen), darauf links unten der weisse
   Schriftzug. Das Foto ist das LCP-Element und wird vorgeladen. */

.banner {
  position: relative;
  height: 60vh;
  min-height: 20rem;
  max-height: 46rem;
  background: var(--gruen);
  overflow: hidden;
}

@media (min-width: 900px) {
  .banner {
    height: 75vh;
    min-height: 28rem;
    max-height: 56rem;
  }
}

.banner-foto,
.banner-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-foto img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(30 58 49 / 0.7) 0%,
    rgb(30 58 49 / 0.4) 38%,
    rgb(30 58 49 / 0) 72%
  );
  pointer-events: none;
}

.banner-inhalt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 1;
}

.banner-logo {
  display: block;
  width: clamp(15rem, 44vw, 34rem);
  height: auto;
}

/* -------------------------------------------------------------- Startseite */

.einleitung p {
  font-size: calc(var(--gr-text) * 1.08);
  margin-bottom: 0;
}

.kacheln {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spalte);
  margin: 0;
  padding: 0;
}

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

.kachel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
}

.kachel picture,
.kachel img {
  display: block;
  width: 100%;
  height: auto;
}

.kachel-titel {
  display: block;
  padding: 1rem 1.25rem 1.125rem;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color var(--tempo) var(--kurve), text-decoration-color var(--tempo) var(--kurve);
}

.kachel:hover .kachel-titel {
  color: var(--gruen);
  text-decoration-color: var(--gruen);
}

/* ------------------------------------------------------------ Kontaktblock
   Auf der Flaeche-Farbe, E-Mail und Telefon als grosse Links. */

.kontaktblock {
  margin-top: var(--sektion);
  padding-block: var(--sektion);
  background: var(--flaeche);
}

.kontakt-gross {
  margin: 0 0 0.5rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.kontakt-gross a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.kontakt-zeile {
  margin: 0 0 0.25rem;
}

/* ------------------------------------------------------------- Unterseiten
   Seitenkopf mit der h1, Leistungsgruppen mit Zwischenueberschrift und
   Linie, Bild-Text-Abschnitte (ab 900 px nebeneinander, Bild wahlweise
   rechts), Textseiten fuer Kontakt, Impressum und 404. */

.seitenkopf h1 {
  margin-bottom: 0;
}

.seitenkopf + .leistungsgruppe {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.leistungsgruppe h2 {
  max-width: none;
  scroll-margin-top: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--linie);
}

.bildtext {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem var(--spalte);
  align-items: center;
  /* Sprung von den Kacheln der Startseite: Luft ueber dem Bild. */
  scroll-margin-top: 2rem;
}

.bildtext + .bildtext {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.bildtext-bild picture,
.bildtext-bild img {
  display: block;
  width: 100%;
  height: auto;
}

.bildtext-text h3 {
  margin-bottom: 0.5em;
}

.bildtext-text p:last-child {
  margin-bottom: 0;
}

.bildtext-oben {
  align-items: start;
}

/* Ueber uns: auf dem Handy zuerst die Ueberschrift, dann das Bild. */
.bildtext-oben .bildtext-bild {
  order: 2;
}

@media (min-width: 900px) {
  .bildtext {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .bildtext-bild,
  .bildtext-text {
    grid-row: 1;
  }

  .bildtext-bild {
    grid-column: 1;
  }

  .bildtext-text {
    grid-column: 2;
  }

  .bildtext-rechts {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .bildtext-rechts .bildtext-bild {
    grid-column: 2;
  }

  .bildtext-rechts .bildtext-text {
    grid-column: 1;
  }
}

.textseite h2 {
  margin-top: 2.5rem;
}

.textseite h3 {
  margin-top: 2rem;
}

.textseite .anschrift strong {
  font-family: var(--schrift-titel);
}

.kontaktwege {
  margin-top: 2.5rem;
}

/* Liste mit Haarlinien statt Punkten (Rechte in der Datenschutzerklaerung). */
.haarlinien {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  max-width: 65ch;
  border-top: 1px solid var(--linie);
}

.haarlinien li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--linie);
}

.textseite .meta {
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------------- Fuss
   Dunkelgruen, weisser Schriftzug, darunter E-Mail und Telefon, rechts
   Impressum und Datenschutz. */

.fuss {
  background: var(--gruen);
  color: var(--weiss);
}

.fuss-bahn {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

@media (min-width: 720px) {
  .fuss-bahn {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-block: 3.5rem;
  }
}

.fuss-logo {
  display: block;
  width: min(14rem, 60vw);
  height: auto;
  margin-bottom: 1.5rem;
}

.fuss-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fuss a {
  color: var(--weiss);
  text-decoration: none;
}

.fuss a:hover {
  color: var(--weiss);
  text-decoration: underline;
}

.fuss :focus-visible {
  outline-color: var(--weiss);
}

.fuss-rechtliches .fuss-liste {
  gap: 0.4rem;
}

@media (min-width: 720px) {
  .fuss-rechtliches .fuss-liste {
    flex-direction: row;
    gap: 1.75rem;
  }
}

/* ---------------------------------------------------------------- Bewegung
   Nichts bewegt sich ausser dem Menue-Knopf und Farbwechseln bei Hover.
   Bei reduzierter Bewegung auch das nicht. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
