/* ==========================================================================
   MK-Reinigung24 – Gestaltung der Website
   --------------------------------------------------------------------------
   Aufbau dieser Datei:
   1. Schriften
   2. Farben und Grundwerte   <- hier lassen sich Farben zentral ändern
   3. Grundeinstellungen
   4. Bausteine (Kopfbereich, Buttons, Karten, Fußbereich ...)
   5. Startseite
   ========================================================================== */

/* 1. Schriften ---------------------------------------------------------------
   Die Schriftdateien liegen im Ordner "fonts" und werden vom eigenen Server
   geladen (keine Verbindung zu Google Fonts). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

/* 2. Farben und Grundwerte --------------------------------------------------- */

:root {
  /* Farben */
  --hintergrund: oklch(98.5% 0.008 180);
  --text: oklch(22% 0.04 220);
  --text-gedaempft: oklch(50% 0.03 215);
  --karte: oklch(100% 0 0);
  --primaer: oklch(45% 0.09 200);
  --primaer-text: oklch(99% 0 0);
  --sekundaer: oklch(94% 0.03 185);
  --sekundaer-text: oklch(30% 0.06 210);
  --akzent: oklch(88% 0.17 125);
  --akzent-text: oklch(22% 0.04 220);
  --rahmen: oklch(90% 0.02 195);

  /* Schriften */
  --schrift-text: "Figtree", sans-serif;
  --schrift-ueberschrift: "Bricolage Grotesque", sans-serif;

  /* Rundungen */
  --rund-xl: 1.25rem;
  --rund-2xl: 1.5rem;
  --rund-gross: 2rem;
  --rund-voll: 9999px;

  /* Schatten */
  --schatten-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --schatten-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Maximale Inhaltsbreite */
  --breite-inhalt: 72rem;
}

/* 3. Grundeinstellungen ------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--rahmen);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--schrift-text);
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--schrift-text);
  background-color: var(--hintergrund);
  color: var(--text);
}

h1,
h2,
h3 {
  font-family: var(--schrift-ueberschrift);
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

/* Sichtbarer Rahmen bei Tastaturbedienung */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primaer);
  outline-offset: 2px;
}

/* Schriftgrößen (Größe + Zeilenhöhe) */
.text-xs  { font-size: 0.75rem;  line-height: calc(1 / 0.75); }
.text-sm  { font-size: 0.875rem; line-height: calc(1.25 / 0.875); }
.text-lg  { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }

.gedaempft {
  color: var(--text-gedaempft);
}

/* 4. Bausteine --------------------------------------------------------------- */

/* Zentrierter Inhaltsbereich */
.inhalt {
  max-width: var(--breite-inhalt);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Symbole (Icons) */
.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.icon--5 { width: 1.25rem; height: 1.25rem; }
.icon--7 { width: 1.75rem; height: 1.75rem; }
.icon--8 { width: 2rem;    height: 2rem; }
.icon--primaer { color: var(--primaer); }

/* Kopfbereich */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-width: 1px;
  background-color: var(--hintergrund);
  background-color: color-mix(in oklab, var(--hintergrund) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--schrift-ueberschrift);
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  font-weight: 800;
  color: var(--primaer);
}

.logo__zeichen {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--rund-xl);
  background-color: var(--akzent);
  color: var(--akzent-text);
}

/* Navigation: am Computer in der Leiste, am Smartphone als zweite Zeile */
.nav {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 500;
}

.nav a {
  color: var(--text-gedaempft);
}

.nav a[aria-current="page"] {
  color: var(--primaer);
}

.nav--desktop {
  display: none;
  gap: 1.75rem;
}

.nav--mobil {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
}

@media (hover: hover) {
  .nav--desktop a:hover {
    color: var(--primaer);
  }
}

.anruf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--rund-voll);
  background-color: var(--primaer);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 600;
  color: var(--primaer-text);
}

.anruf__nummer {
  display: none;
}

@media (min-width: 40rem) {
  .nav--desktop { display: flex; }
  .nav--mobil   { display: none; }
}

@media (min-width: 48rem) {
  .anruf__nummer { display: inline; }
  .anruf__kurz   { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--rund-voll);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn--akzent {
  gap: 0.5rem;
  background-color: var(--akzent);
  color: var(--akzent-text);
}

.btn--rahmen {
  border-width: 1px;
  color: var(--primaer);
}

/* Textlink mit Pfeil */
.pfeil-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primaer);
}

/* Kleines Etikett über der Hauptüberschrift */
.etikett {
  display: inline-block;
  border-radius: var(--rund-voll);
  background-color: var(--sekundaer);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  font-weight: 600;
  color: var(--sekundaer-text);
}

/* Abschnitte */
.abschnitt {
  margin-top: 6rem;
}

.abschnitt--gross {
  margin-top: 7rem;
}

.abschnitt__titel {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
  font-weight: 700;
}

@media (min-width: 48rem) {
  .abschnitt__titel {
    font-size: 2.25rem;
    line-height: calc(2.5 / 2.25);
  }
}

/* Karten */
.karte {
  border-width: 1px;
  border-radius: var(--rund-2xl);
  background-color: var(--karte);
}

.karte--innen {
  padding: 1.5rem;
}

.karte__titel {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  font-weight: 700;
}

/* Raster */
.raster {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .raster--leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .raster--bilder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .raster--leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Fußbereich */
.fuss {
  margin-top: 6rem;
  background-color: var(--primaer);
  color: var(--primaer-text);
}

.fuss__raster {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 40rem) {
  .fuss__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fuss__name {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 800;
}

.fuss__spalte {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}

.fuss__titel {
  font-weight: 600;
}

.fuss__text {
  margin-top: 0.5rem;
  opacity: 0.8;
}

.fuss__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.fuss__copyright {
  border-top: 1px solid color-mix(in oklab, var(--primaer-text) 15%, transparent);
  padding-block: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  opacity: 0.7;
}

/* 5. Startseite -------------------------------------------------------------- */

/* Einstieg (Hero) */
.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-top: 3rem;
}

.hero__titel {
  margin-top: 1.25rem;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
}

.hero__titel span {
  color: var(--primaer);
}

.hero__text {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--text-gedaempft);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__punkte {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}

.hero__punkte li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__punkte li:not(:last-child) {
  margin-bottom: 0.5rem;
}

.hero__bild {
  position: relative;
}

.hero__bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--rund-gross);
  object-fit: cover;
  box-shadow: var(--schatten-xl);
}

.hero__hinweis {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  border-radius: var(--rund-2xl);
  background-color: var(--karte);
  padding: 1rem;
  box-shadow: var(--schatten-lg);
}

.hero__hinweis-zahl {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
  font-weight: 800;
  color: var(--primaer);
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 5rem;
  }

  .hero__titel {
    font-size: 3.75rem;
  }
}

/* Leistungskarten */
.leistung__titel {
  margin-top: 1rem;
}

.leistung__text {
  margin-top: 0.5rem;
}

.leistungen__mehr {
  margin-top: 1.5rem;
}

/* Bildkarten "Wo wir für Sauberkeit sorgen" */
.bildkarte {
  overflow: hidden;
}

.bildkarte img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bildkarte figcaption {
  padding: 1.25rem;
}

/* Werte (Pünktlich, Versichert, Nachhaltig) */
.werte {
  display: grid;
  gap: 1.5rem;
  border-radius: var(--rund-gross);
  background-color: var(--sekundaer);
  padding: 2rem;
}

.werte__titel {
  margin-top: 0.75rem;
}

@media (min-width: 48rem) {
  .werte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 3rem;
  }
}

/* 6. Unterseiten (Leistungen, ...) ------------------------------------------- */

/* Seitenanfang mit großer Überschrift */
.seite {
  padding-top: 4rem;
}

.seite__titel {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
}

.seite__text {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--text-gedaempft);
}

.raster--abstand-gross {
  margin-top: 2.5rem;
}

/* Symbol in hellem Feld (Leistungskarten) */
.icon--6 { width: 1.5rem; height: 1.5rem; }

.icon-feld {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--rund-xl);
  background-color: var(--sekundaer);
}

/* Weitere Buttons */
.btn--block {
  display: inline-block;
}

.btn--primaer {
  background-color: var(--primaer);
  color: var(--primaer-text);
}

/* Großer Block mit Bild und Text (Möbeltransport) */
.bildblock {
  display: grid;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  overflow: hidden;
  border-width: 1px;
  border-radius: var(--rund-gross);
  background-color: var(--karte);
}

.bildblock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bildblock__text {
  padding: 2rem;
}

.bildblock__text p {
  margin-top: 0.75rem;
  color: var(--text-gedaempft);
}

.bildblock__text .btn,
.aufruf .btn {
  margin-top: 1.5rem;
}

.block__titel {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
  font-weight: 700;
}

@media (min-width: 48rem) {
  .bildblock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bildblock__text {
    padding: 2.5rem;
  }
}

/* Farbiger Aufruf am Seitenende */
.aufruf {
  margin-top: 3.5rem;
  border-radius: var(--rund-gross);
  background-color: var(--primaer);
  padding: 2.5rem;
  text-align: center;
  color: var(--primaer-text);
}

/* 7. Formulare ---------------------------------------------------------------- */

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  opacity: 1;
}

button {
  -webkit-appearance: button;
  appearance: button;
}

textarea {
  resize: vertical;
}

::placeholder {
  opacity: 1;
  color: color-mix(in oklab, currentcolor 50%, transparent);
}

/* Elemente mit dem Attribut "hidden" bleiben immer unsichtbar */
[hidden] {
  display: none !important;
}

:root {
  --fehler: oklch(57.7% 0.245 27.325);
}

/* Formularkasten */
.formular {
  border-width: 1px;
  border-radius: var(--rund-gross);
  background-color: var(--karte);
  padding: 2rem;
}

.formular > * + * {
  margin-top: 1rem;
}

/* Beschriftung + Eingabefeld */
.feld {
  display: block;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 500;
}

.eingabe {
  width: 100%;
  border-width: 1px;
  border-radius: var(--rund-xl);
  background-color: var(--hintergrund);
  padding: 0.75rem 1rem;
  outline-style: none;
}

.feld .eingabe {
  margin-top: 0.25rem;
}

.eingabe:focus {
  box-shadow: 0 0 0 2px var(--primaer);
}

/* Button über die ganze Breite */
.btn--voll {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 0;
}

.btn:disabled {
  opacity: 0.6;
}

/* Kleinere Buttons */
.btn--klein {
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
}

/* Fehlermeldung */
.fehler {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: var(--fehler);
}

/* Drehendes Lade-Symbol */
.dreht {
  animation: drehen 1s linear infinite;
}

@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}

/* Textlink */
.textlink {
  font-weight: 600;
  color: var(--primaer);
}

/* 8. Seite "KI-Beratung" ------------------------------------------------------ */

.etikett--akzent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--akzent);
  color: var(--akzent-text);
}

.etikett + .seite__titel {
  margin-top: 1rem;
}

.zweispaltig {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .zweispaltig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Leerer Kasten, solange noch kein Vorschlag da ist */
.platzhalter {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 16rem;
  border: 1px dashed var(--rahmen);
  border-radius: var(--rund-gross);
  padding: 2rem;
  text-align: center;
  color: var(--text-gedaempft);
}

/* Vorschlag */
.ergebnis > * + * {
  margin-top: 1.5rem;
}

.ergebnis__titel {
  font-family: var(--schrift-ueberschrift);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 700;
}

.empfehlungen {
  margin-top: 1rem;
}

.empfehlungen > li {
  border-radius: var(--rund-2xl);
  background-color: var(--sekundaer);
  padding: 1rem;
}

.empfehlungen > li:not(:last-child) {
  margin-bottom: 0.75rem;
}

.empfehlung__name {
  font-weight: 600;
  color: var(--sekundaer-text);
}

.eingabe--entwurf {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}

.ergebnis__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.seite__fussnote {
  margin-top: 2rem;
}

/* 9. Seite "Kontakt" ---------------------------------------------------------- */

.seite--zweispaltig {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .seite--zweispaltig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.seite__text--breit {
  max-width: none;
}

/* Telefon, WhatsApp, E-Mail, Adresse */
.kontaktliste {
  margin-top: 2rem;
}

.kontaktliste > * {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kontaktliste > * + * {
  margin-top: 1rem;
}

/* Bestätigung nach dem Absenden */
.erfolg {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  font-weight: 600;
  color: var(--primaer);
}

/* Für Menschen unsichtbares Feld (Spam-Schutz) */
.unsichtbar {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 10. Rechtstexte (Impressum, Datenschutz) ----------------------------------- */

.rechtstext {
  margin-top: 2.5rem;
  max-width: 48rem;
  line-height: 1.65;
}

.rechtstext h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 700;
}

.rechtstext h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.rechtstext p,
.rechtstext ul {
  margin-top: 0.75rem;
}

.rechtstext ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.rechtstext a {
  color: var(--primaer);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rechtstext__stand {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-gedaempft);
}

/* Links zu Impressum und Datenschutz in der Fußzeile */
.fuss__copyright a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
