/* ==========================================================================
   Fliesen Schmökel — Demo-Gestaltungsvorschlag
   Charakter: Präzision auf den Millimeter — klare Kanten, exakte Raster,
              ruhige Flächen. Das Layout wirkt wie sauber verlegte Fliesen.
   Farbwelt: Kalkweiß #F4F3EF · Schieferblau #2F3E46 · Terrakotta #C26E4B ·
             Steingrau #E5E2DB · Text #22272B
   Schriften: Outfit (Headlines) + Source Sans 3 (Fließtext), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --kalk: #f4f3ef;          /* Grundton — Kalkweiß */
  --stein: #e5e2db;         /* helle Flächen — Steingrau */
  --fuge: #d3cfc5;          /* Linien & "Fugen" auf hellem Grund */
  --schiefer: #2f3e46;      /* Primärfarbe — Schieferblau */
  --schiefer-tief: #253138; /* dunklere Flächen */
  --terrakotta: #c26e4b;    /* Akzent — die klassische Tonfliese */
  --terrakotta-tief: #a85a3a;
  --ink: #22272b;           /* Text */
  --ink-soft: #4b5358;      /* abgesetzter Fließtext */
  --hell: #fdfdfb;          /* Fliesen-Weiß für Karten */
  --fuge-dunkel: rgba(244, 243, 239, 0.14);

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;            /* kaum Rundung — Fliesenkante */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--kalk);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--schiefer); }

::selection { background: var(--terrakotta); color: #fff; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--schiefer);
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { color: var(--ink-soft); }

.mark { color: var(--terrakotta); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terrakotta);
  margin-bottom: 0.7rem;
}

/* Mini-Fliesenstreifen als Zierlinie unter Überschriften */
.tile-strip {
  display: inline-flex;
  gap: 4px;
  margin-top: 1.1rem;
}
.tile-strip span {
  width: 14px;
  height: 14px;
  background: var(--stein);
  border: 1px solid var(--fuge);
}
.tile-strip span:nth-child(2) { background: var(--terrakotta); border-color: var(--terrakotta); }
.section--dark .tile-strip span { background: var(--fuge-dunkel); border-color: transparent; }
.section--dark .tile-strip span:nth-child(2) { background: var(--terrakotta); }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: var(--ink);
  color: var(--kalk);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem var(--pad);
  line-height: 1.4;
}
.demo-bar strong { color: #f0c9b4; font-weight: 600; }

/* ---------- Kopfbereich ---------- */
.site-head {
  background: var(--kalk);
  border-bottom: 1px solid var(--fuge);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
/* Monogramm: "S" in einer quadratischen Fliese */
.brand__tile {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  background: var(--terrakotta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--kalk), 0 0 0 4px var(--fuge);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.12rem;
  color: var(--schiefer);
  line-height: 1.2;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  color: var(--schiefer);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { color: var(--terrakotta); }
.nav a[aria-current="page"] { border-bottom-color: var(--terrakotta); }
.nav__cta {
  background: var(--schiefer);
  color: var(--kalk) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background 0.2s var(--ease);
}
.nav__cta:hover { background: var(--terrakotta-tief); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--schiefer);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--fuge);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero .lead {
  font-size: 1.14rem;
  margin-top: 1.2rem;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* Das Fliesenraster — Wiedererkennungs-Element */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;                       /* die Fugen */
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
  padding: 7px;
  background: var(--fuge);        /* Fugenmasse hinter den Fliesen */
  border-radius: var(--radius);
}
.tile-grid span {
  background: var(--hell);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}
.tile-grid .t-stein    { background: var(--stein); }
.tile-grid .t-schiefer { background: var(--schiefer); }
.tile-grid .t-mosaik {
  background:
    linear-gradient(45deg, var(--stein) 25%, transparent 25%, transparent 75%, var(--stein) 75%),
    linear-gradient(45deg, var(--stein) 25%, var(--hell) 25%, var(--hell) 75%, var(--stein) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
/* die eine Terrakotta-Fliese — versetzt und leicht gedreht, der Blickfang */
.tile-grid .t-akzent {
  background: var(--terrakotta);
  transform: rotate(-7deg) translate(7%, -7%) scale(1.08);
  box-shadow: 0 10px 26px rgba(194, 110, 75, 0.42);
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--schiefer);
  background: transparent;
  border: 2px solid var(--schiefer);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--schiefer); color: var(--kalk); }
.btn--solid { background: var(--terrakotta); border-color: var(--terrakotta); color: #fff; }
.btn--solid:hover { background: var(--terrakotta-tief); border-color: var(--terrakotta-tief); color: #fff; }
.btn--light { border-color: var(--kalk); color: var(--kalk); }
.btn--light:hover { background: var(--kalk); color: var(--schiefer); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--stein { background: var(--stein); }
.section--dark { background: var(--schiefer); }
.section--dark h2, .section--dark h3 { color: var(--kalk); }
.section--dark p { color: rgba(244, 243, 239, 0.78); }
.section--dark .eyebrow { color: #e09b77; }

.section__head { max-width: 38rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head p { margin-top: 0.8rem; }

/* ---------- Leistungs-Kacheln (wie verlegte Fliesen) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;                       /* Fugenbreite */
  background: var(--fuge);
  padding: 8px;
  border-radius: var(--radius);
}
.tile {
  background: var(--hell);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(34, 39, 43, 0.12);
  z-index: 1;
}
.tile__icon {
  width: 46px;
  height: 46px;
  color: var(--terrakotta);
  margin-bottom: 0.3rem;
}
.tile p { font-size: 0.97rem; }
.tile__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--terrakotta);
}

/* ---------- Vertrauens-Block (Google-Bewertung) ---------- */
.trust { text-align: center; }
.trust__score {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 5.5rem);
  font-weight: 700;
  color: var(--kalk);
  line-height: 1;
  margin-top: 0.6rem;
}
.trust__stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.1rem 0 0.9rem;
  color: var(--terrakotta);
}
.trust__stars svg { width: 30px; height: 30px; }
.trust__quelle { font-size: 1.05rem; }
.trust__stand {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(244, 243, 239, 0.55);
}
.trust__hinweis {
  max-width: 30rem;
  margin: 1.4rem auto 0;
  font-size: 0.95rem;
}

/* ---------- Standort ---------- */
.ort__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ort__karte {
  background: var(--hell);
  border: 1px solid var(--fuge);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.ort__karte h3 { margin-bottom: 0.6rem; }
.ort__karte address { font-style: normal; line-height: 1.7; color: var(--ink-soft); }
.ort__karte .btn { margin-top: 1.2rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--terrakotta);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transform: rotate(-8deg);
}
.cta-band::before { top: -45px; left: -35px; }
.cta-band::after { bottom: -45px; right: -35px; transform: rotate(10deg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin-top: 0.7rem; }
.cta-band .tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 1.2rem 0 1.4rem;
  letter-spacing: 0.01em;
}
.cta-band .tel:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.cta-band .btn { position: relative; }

/* ---------- Leistungen (Unterseite) ---------- */
.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--fuge);
}
.page-head p { max-width: 38rem; margin-top: 1rem; font-size: 1.1rem; }

.leistung {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--fuge);
  align-items: start;
}
.leistung:last-of-type { border-bottom: none; }
.leistung h2 { position: relative; padding-top: 1.1rem; }
.leistung h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 5px;
  background: var(--terrakotta);
}
.leistung__text p + p { margin-top: 0.9rem; }
.leistung ul {
  list-style: none;
  margin-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.leistung li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.leistung li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 11px;
  height: 11px;
  background: var(--terrakotta);
  border-radius: var(--radius);
}

/* Ablauf-Schritte: nummerierte Fliesen */
.ablauf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--fuge-dunkel);
  padding: 8px;
  border-radius: var(--radius);
  counter-reset: schritt;
}
.ablauf__step {
  background: var(--schiefer-tief);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  counter-increment: schritt;
}
.ablauf__step::before {
  content: counter(schritt, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--terrakotta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.ablauf__step h3 { margin-bottom: 0.4rem; }
.ablauf__step p { font-size: 0.95rem; }

/* ---------- Kontakt ---------- */
.kontakt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.kontakt__tel-card {
  background: var(--schiefer);
  color: var(--kalk);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}
.kontakt__tel-card h2 { color: var(--kalk); font-size: 1.3rem; }
.kontakt__tel-card p { color: rgba(244, 243, 239, 0.78); margin-top: 0.5rem; }
.kontakt__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 1.1rem 0;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--terrakotta);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}
.kontakt__tel:hover { background: var(--terrakotta); }
.kontakt__hinweis { font-size: 0.92rem; }

.info-card {
  background: var(--hell);
  border: 1px solid var(--fuge);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.info-card + .info-card { margin-top: 1rem; }
.info-card h3 { margin-bottom: 0.5rem; }
.info-card address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.info-card .btn { margin-top: 1rem; font-size: 0.9rem; padding: 0.6rem 1.2rem; }
.info-card p { font-size: 0.97rem; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.7rem;
}
.legal p + p { margin-top: 0.8rem; }
.legal address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.legal a { color: var(--terrakotta-tief); }

.demo-note {
  background: var(--stein);
  border-left: 5px solid var(--terrakotta);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.placeholder {
  background: var(--stein);
  border: 1px dashed var(--fuge);
  border-radius: var(--radius);
  padding: 0.1rem 0.5rem;
  font-size: 0.92em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Fußbereich ---------- */
.site-foot {
  background: var(--ink);
  color: rgba(244, 243, 239, 0.75);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fuge-dunkel);
}
.site-foot h3 {
  color: var(--kalk);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.site-foot ul { list-style: none; display: grid; gap: 0.35rem; }
.site-foot a { color: rgba(244, 243, 239, 0.75); text-decoration: none; }
.site-foot a:hover { color: var(--terrakotta); }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
}

/* ---------- Einblend-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .ablauf { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .tile-grid { max-width: 340px; }
  .leistung { grid-template-columns: 1fr; gap: 1.2rem; }
  .kontakt__grid { grid-template-columns: 1fr; }
  .ort__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--kalk);
    border-bottom: 1px solid var(--fuge);
    padding: 0.5rem var(--pad) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--fuge);
    font-size: 1.05rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--fuge); color: var(--terrakotta); }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
    border: none !important;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .tiles { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1rem; }
}
