/* =====================================================
   Gebr. Kroh GmbH – Bausanierung
   Farbschema: Royal Blue (#3447AA) auf Weiß.
   Bewusst reduziert: Blau als einzige Akzentfarbe,
   ansonsten Weiß / dezentes Neutralgrau + Text.
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Markenfarben */
  --royal-blue: #3447aa;
  --royal-blue-dark: #28387f;   /* Hover / Tiefe */
  --powder-pink: #f7f8fb;       /* helle, fast weiße Fläche (ersetzt das frühere Rosé) */
  --powder-pink-deep: #e7e9f1;  /* feine Rahmen / Trennlinien */
  --tint: #eef1f8;              /* sehr dezenter Akzent für Icons / Chips */

  /* Neutral / Text */
  --text: #1f2330;
  --text-light: #5b6072;
  --white: #ffffff;

  /* Utility */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(52, 71, 170, 0.10);
  --shadow-hover: 0 12px 32px rgba(52, 71, 170, 0.18);
  --maxw: 1180px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--royal-blue);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(31, 35, 48, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--powder-pink-deep);
}

.header-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo .logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--royal-blue);
}

.logo .logo-sub {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
}

nav {
  display: none;
}

nav.active {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--white);
  border-bottom: 3px solid var(--royal-blue);
  box-shadow: var(--shadow);
}

nav a {
  display: block;
  padding: 15px 22px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

nav a:hover {
  background: var(--powder-pink);
  color: var(--royal-blue);
}

nav a.active {
  color: var(--royal-blue);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: var(--royal-blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   LAYOUT-HELFER
   ===================================================== */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--powder-pink);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 10px;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.2;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }

p {
  color: var(--text-light);
  margin-bottom: 14px;
}

p:last-child { margin-bottom: 0; }

/* =====================================================
   BUTTONS
   ===================================================== */

/* Wipe-Hover wie beim Wandler-Projekt: die Füllfarbe schiebt sich
   beim Hovern von links über den Button. */
.btn {
  display: inline-block;
  /* Standard sichtbar: rechte Hälfte = Royal Blue */
  background-image: linear-gradient(to right, var(--white) 50%, var(--royal-blue) 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: var(--white);
  padding: 13px 30px;
  text-decoration: none;
  border: 2px solid var(--royal-blue);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-position 0.4s ease, color 0.4s ease,
              transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  /* Wipe nach links: Button wird weiß, Schrift blau */
  background-position: left center;
  color: var(--royal-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Outline: startet weiß mit blauer Schrift, füllt sich blau */
.btn-outline {
  background-image: linear-gradient(to right, var(--royal-blue) 50%, var(--white) 50%);
  background-position: right center;
  color: var(--royal-blue);
}

.btn-outline:hover {
  background-position: left center;
  color: var(--white);
}

/* Helle Variante auf blauem Grund (CTA-Band):
   startet weiß, füllt sich beim Hovern mit dunklerem Blau. */
.btn-light {
  background-image: linear-gradient(to right, var(--royal-blue-dark) 50%, var(--white) 50%);
  background-position: right center;
  color: var(--royal-blue);
  border-color: var(--white);
}

.btn-light:hover {
  background-position: left center;
  color: var(--white);
}

/* =====================================================
   HERO (Startseite)
   ===================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 36px;
  margin-bottom: 8px;
}

.hero-text {
  background: var(--powder-pink);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--royal-blue);
}

.hero-text p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 26px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-image {
  min-height: 280px;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   FEATURE / WARUM-WIR KARTEN
   ===================================================== */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--powder-pink-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon svg { width: 24px; height: 24px; }

.card h3 {
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.card p { margin-bottom: 0; }

/* Karten auf rosa Hintergrund bekommen weißen Body */
.section-alt .card {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.section-alt .card .icon {
  background: var(--tint);
}

/* =====================================================
   LEISTUNGEN MIT BILDERN
   ===================================================== */

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card-body {
  padding: 22px 22px 26px;
}

.service-card-body h3 {
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.service-card-body p { margin-bottom: 0; }

/* =====================================================
   SPLIT (Text + Bild Wechselblöcke)
   ===================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split ul {
  list-style: none;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.split ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-light);
}

.split ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--royal-blue);
}

/* =====================================================
   VORHER / NACHHER
   ===================================================== */

.beforeafter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.beforeafter figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.beforeafter img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.beforeafter figcaption {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal-blue);
}

/* =====================================================
   PROJEKT-GALERIE
   ===================================================== */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.project img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 20px 22px 24px;
}

.project-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: var(--tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.project-body h3 { margin-bottom: 6px; }
.project-body p { margin-bottom: 0; }

/* Stat-Zeile */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--royal-blue);
  line-height: 1;
}

.stat .label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

/* =====================================================
   CTA-BAND
   ===================================================== */

.cta-band {
  background: var(--royal-blue);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

/* =====================================================
   KONTAKT
   ===================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-card {
  background: var(--powder-pink);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--powder-pink-deep);
}

.contact-block:last-child { border-bottom: none; }

.contact-block .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 6px;
}

.contact-block a,
.contact-block span {
  display: block;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-block a:hover { color: var(--royal-blue); }

.contact-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* =====================================================
   IMPRESSUM
   ===================================================== */

.legal {
  max-width: 760px;
}

.legal-block {
  padding: 26px 0;
  border-bottom: 1px solid var(--powder-pink-deep);
}

.legal-block:first-of-type { border-top: 1px solid var(--powder-pink-deep); }

.legal-block h2 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 12px;
}

.legal-block p { margin-bottom: 6px; }

.legal-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-block a:hover { color: var(--royal-blue); }

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  background: var(--royal-blue);
  color: var(--white);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-inner h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.footer-inner a:hover { text-decoration: underline; }

.footer-brand .name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
  color: var(--white);
  font-weight: 600;
}

/* =====================================================
   TABLET (768px+)
   ===================================================== */

@media (min-width: 768px) {
  .hamburger { display: none; }

  nav {
    display: flex !important;
    position: static;
    border: none;
    box-shadow: none;
    gap: 4px;
  }

  nav a { padding: 8px 14px; border-radius: 8px; }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .hero { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .hero-text { padding: 56px 48px; }
  .hero-text h1 { font-size: 42px; }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .split.reverse .split-media { order: 2; }

  .beforeafter { grid-template-columns: 1fr 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(4, 1fr); }

  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* =====================================================
   DESKTOP (1024px+)
   ===================================================== */

@media (min-width: 1024px) {
  section { padding: 72px 0; }

  h1 { font-size: 46px; }
  .hero-text h1 { font-size: 46px; }

  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
