:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted2:#64748b;
  --line:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow2: 0 18px 50px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --max: 1200px;
  --accent: #b91c1c;     /* rot ähnlich Screenshot */
  --accent2:#ef4444;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:var(--font);color:var(--text);background:var(--bg)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{width:min(100%,var(--max));margin:0 auto;padding:0 18px}
.small{font-size:.94rem;color:var(--muted2);line-height:1.6}
.kicker{display:inline-flex;align-items:center;gap:.6rem;color:var(--accent);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.78rem}
.kicker .bar{width:34px;height:2px;background:var(--accent);display:inline-block;border-radius:999px;opacity:.85}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:12px 16px;border-radius:10px;border:1px solid rgba(255,255,255,.35);color:#fff;background:rgba(0,0,0,.10);backdrop-filter: blur(8px);transition:.18s transform,.18s background,.18s border-color;font-weight:650}
.btn:hover{transform:translateY(-1px);background:rgba(0,0,0,.18);border-color:rgba(255,255,255,.55)}
.btn.outline{background:transparent;border-color:rgba(15,23,42,.20);color:var(--text);backdrop-filter:none}
.btn.outline:hover{background:rgba(15,23,42,.04);border-color:rgba(15,23,42,.28)}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card .pad{padding:26px}
.card h3{margin:10px 0 10px 0;font-size:1.25rem}
.card p{margin:0;color:var(--muted);line-height:1.75}

.grid{display:grid;gap:26px}
.section{padding:76px 0}
.section h2{margin:10px 0 0 0;font-size: clamp(1.6rem, 2.4vw, 2.2rem)}
.section .lead{margin:12px 0 0 0;color:var(--muted);max-width:72ch;line-height:1.8}

header.site{
  position:sticky;top:0;z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,.8);
}
.navbar{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:34px;width:auto}
nav ul{display:flex;gap:20px;list-style:none;margin:0;padding:0;align-items:center}
nav a{color:#111827;padding:10px 12px;border-radius:10px}
nav a:hover{background:rgba(15,23,42,.05)}
nav a.active{background:rgba(185,28,28,.10);color:var(--accent)}

.hamburger{display:none;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px}
.hamburger span{display:block;width:22px;height:2px;background:#111827;margin:4px 0;border-radius:2px}
.mobile{display:none;padding:10px 0 14px 0}
.mobile a{display:block;padding:12px 14px;border-radius:12px}
.mobile a:hover{background:rgba(15,23,42,.05)}
.mobile a.active{background:rgba(185,28,28,.10);color:var(--accent)}

.hero{
  position:relative;
  min-height: 78vh;
  display:flex;
  align-items:stretch;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.10) 60%, rgba(0,0,0,0) 100%),
    url('assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero .inner{display:grid;grid-template-columns: 1.15fr .85fr; gap:28px; align-items:center; padding: 76px 0}
.hero h1{margin:14px 0 0 0;color:#fff;font-size: clamp(2.3rem, 5vw, 4.2rem); line-height:1.03; letter-spacing:-.02em}
.hero p{margin:14px 0 0 0;color:rgba(255,255,255,.86);font-size:1.06rem;line-height:1.75;max-width:60ch}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}

.hero .badge{
  display:inline-flex;align-items:center;gap:.55rem;
  padding:10px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size:.92rem;
}

.hero .right{
  display:flex;justify-content:flex-end;
}
.cert{
  width:min(380px, 100%);
  background:#fff;border-radius:16px;box-shadow: var(--shadow2);
  overflow:hidden;border:1px solid rgba(229,231,235,.9);
}
.cert .top{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.cert .top .dots{display:flex;gap:7px}
.cert .top .dots i{width:10px;height:10px;border-radius:50%;background:rgba(148,163,184,.6)}
.cert img{width:100%;height:auto;display:block}

.features{grid-template-columns: repeat(3, 1fr)}
.feature-icon{
  width:54px;height:54px;border-radius:16px;
  background: rgba(185,28,28,.08);
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(185,28,28,.18);
}
.feature-icon svg{width:28px;height:28px;stroke: var(--accent);}

.pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:#f8fafc;color:var(--muted);font-weight:650;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}

.projects{grid-template-columns: repeat(3, 1fr)}
.project .thumb{
  height:210px;border-radius:16px;
  background:
    linear-gradient(135deg, rgba(185,28,28,.10), rgba(15,23,42,.05)),
    url('assets/img/project.jpg');
  background-size: cover;
  background-position:center;
  border:1px solid var(--line);
}
.project .meta{padding:14px 6px 0 6px}
.project .place{color:var(--muted2);font-size:.95rem}
.project h3{margin:8px 0 6px 0;font-size:1.15rem}
.project p{margin:0;color:var(--muted);line-height:1.75}

.split{display:grid;grid-template-columns: 1.05fr .95fr;gap:26px;align-items:start}
.form{display:grid;gap:14px}
.field label{display:block;font-weight:700;margin-bottom:6px}
.field input,.field textarea{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);
  background:#fff;outline:none;font-size:1rem
}
.field input:focus,.field textarea:focus{border-color:rgba(185,28,28,.55);box-shadow:0 0 0 4px rgba(185,28,28,.12)}
.field textarea{min-height:140px;resize:vertical}
.form .hint{color:var(--muted2);font-size:.95rem;line-height:1.6}

footer{border-top:1px solid var(--line);padding:50px 0;background:#fff}
.footergrid{display:grid;grid-template-columns: 1.4fr 1fr 1fr;gap:22px}
footer h4{margin:0 0 10px 0}
footer a{color:var(--muted)}
footer a:hover{color:var(--text)}
.copy{margin-top:22px;color:var(--muted2);font-size:.92rem}

.pagehead{padding:44px 0 8px 0;background:#fff}
.breadcrumb{color:var(--muted2);font-size:.95rem}
.breadcrumb a{color:var(--muted);text-decoration:underline;text-decoration-color:rgba(185,28,28,.35)}
.breadcrumb a:hover{text-decoration-color:rgba(185,28,28,.65)}
.pagehead h1{margin:10px 0 0 0;font-size: clamp(2.0rem, 3.5vw, 2.8rem)}
.hr{height:1px;background:var(--line);margin:28px 0}

.table{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table th{background:#f8fafc}
.table tr:last-child td{border-bottom:none}

@media (max-width: 950px){
  .hero .inner{grid-template-columns: 1fr; padding: 54px 0}
  .hero{min-height: auto}
  .hero .right{justify-content:flex-start}
  .features,.projects{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  nav ul{display:none}
  .hamburger{display:inline-block}
  .mobile{display:none}
  .mobile.open{display:block}
}

/* Home (Kobold Bau) */
.home-page{
  background:#ececef;
  color:#202532;
}

.home-page .container{
  width:min(100%, 1240px);
}

.home-page .site{
  background:#ffffff;
  border-bottom:1px solid #dee1e8;
  backdrop-filter:none;
}

.home-page .navbar{
  padding:20px 0;
}

.home-page .brand img{
  height:56px;
  width:auto;
}

.home-page nav ul{
  gap:26px;
}

.home-page nav a{
  font-size:1.05rem;
  font-weight:500;
  color:#1f2634;
  border-radius:8px;
  padding:8px 10px;
}

.home-page nav a:hover,
.home-page nav a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.home-page .mobile{
  padding:0 0 14px 0;
}

.home-page .mobile a,
.home-page .mobile a.active,
.home-page .mobile a:hover{
  color:#1f2634;
}

.home-page .mobile a.active,
.home-page .mobile a:hover{
  background:rgba(17,24,39,.06);
}

.home-hero{
  position:relative;
  min-height:calc(100vh - 82px);
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg, rgba(5,10,18,.62) 0%, rgba(7,13,24,.44) 38%, rgba(8,15,27,.24) 70%, rgba(8,15,27,.12) 100%),
    url('../img/homepagekoboldbau.jpeg');
  background-size:cover;
  background-position:center center;
}

.home-hero-inner{
  padding:108px 0 96px;
}

.home-hero-content{
  max-width:730px;
}

.home-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#ebedf4;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:.72rem;
  font-weight:700;
}

.home-hero-kicker span{
  width:42px;
  height:2px;
  background:#ff7f7f;
  display:inline-block;
}

.home-hero h1{
  margin:18px 0 0 0;
  font-size:clamp(2.2rem, 6vw, 4.15rem);
  line-height:1.02;
  letter-spacing:-.02em;
  color:#ffffff;
}

.home-hero-btn{
  margin-top:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:130px;
  min-height:52px;
  padding:12px 28px;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.8);
  border-radius:4px;
  background:rgba(0,0,0,.08);
  font-size:1.1rem;
  transition:.2s ease;
}

.home-hero-btn:hover{
  background:rgba(255,255,255,.14);
  border-color:#ffffff;
}

.home-about{
  background:#ececef;
  padding:96px 0 60px;
}

.home-about-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:88px;
  align-items:start;
}

.home-about-image img{
  width:100%;
  max-width:560px;
  border-radius:8px;
  object-fit:cover;
  box-shadow:0 12px 30px rgba(15,23,42,.09);
}

.home-about-content h2{
  margin:0;
  font-size:clamp(2rem, 4vw, 3.55rem);
  line-height:1.14;
  letter-spacing:-.02em;
  font-weight:400;
  color:#202532;
}

.home-about-content h2 strong{
  font-weight:700;
}

.home-about-content p{
  margin:28px 0 0 0;
  color:#666d7a;
  font-size:1.1rem;
  line-height:1.8;
}

.home-about-content ul{
  margin:16px 0 0 0;
  padding:0;
  list-style:none;
  color:#666d7a;
}

.home-about-content li{
  position:relative;
  padding-left:16px;
  line-height:1.8;
  font-size:1.1rem;
  font-weight:700;
}

.home-about-content li::before{
  content:"-";
  position:absolute;
  left:0;
  color:#666d7a;
  font-weight:700;
}

.home-services{
  background:#ececef;
  padding:22px 0 92px;
}

.home-services-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:32px;
}

.home-service-card{
  border:1px solid #d3d5dc;
  border-radius:4px;
  background:transparent;
  padding:34px 32px 30px;
}

.home-service-card img{
  width:84px;
  height:84px;
  object-fit:contain;
}

.home-service-card h3{
  margin:22px 0 10px 0;
  font-size:2rem;
  letter-spacing:-.01em;
  color:#212734;
}

.home-service-card p{
  margin:0;
  color:#666d7a;
  font-size:1.1rem;
  line-height:1.8;
}

.home-service-card p + p{
  margin-top:16px;
}

.home-footer{
  background:#e3e4e8;
  border-top:none;
  padding:56px 0 44px;
}

.home-footer-top{
  display:grid;
  grid-template-columns:minmax(260px, 340px) minmax(280px, 460px) minmax(240px, 1fr);
  gap:38px;
  align-items:start;
}

.home-map-wrap{
  width:100%;
  border-radius:4px;
  overflow:hidden;
  border:1px solid #c9ccd5;
}

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

.home-contact{
  margin:0;
  display:grid;
  gap:2px;
  font-style:normal;
  color:#2c3240;
}

.home-contact strong{
  font-size:1.95rem;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.02em;
  margin-bottom:2px;
}

.home-contact span,
.home-contact a{
  color:#2c3240;
  text-decoration:none;
  font-size:1.1rem;
  line-height:1.45;
}

.home-contact a:hover{
  color:#111827;
}

.home-footer-logo{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
}

.home-footer-logo img{
  width:min(350px, 100%);
  height:auto;
}

.home-copy{
  margin-top:54px;
}

.home-copy p{
  margin:0;
  color:#22262f;
  font-size:1rem;
  line-height:1.5;
}

@media (max-width: 1200px){
  .home-about-grid{
    gap:58px;
  }

  .home-service-card h3{
    font-size:1.75rem;
  }

  .home-contact strong{
    font-size:1.65rem;
  }

  .home-contact span,
  .home-contact a{
    font-size:1.05rem;
  }

  .home-copy p{
    font-size:.95rem;
  }
}

@media (max-width: 1000px){
  .home-about{
    padding-top:72px;
  }

  .home-about-grid{
    grid-template-columns:1fr;
    gap:38px;
  }

  .home-about-image img{
    max-width:none;
  }

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

  .home-footer-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .home-footer-logo{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .home-page .navbar{
    padding:16px 0;
  }

  .home-page .brand img{
    height:42px;
  }

  .home-hero{
    min-height:520px;
    background-position:58% center;
  }

  .home-hero-inner{
    padding:78px 0 70px;
  }

  .home-hero h1{
    font-size:clamp(2rem, 10vw, 2.9rem);
  }

  .home-about-content p,
  .home-about-content li,
  .home-service-card p{
    font-size:1rem;
  }

  .home-services-grid,
  .home-footer-top{
    grid-template-columns:1fr;
  }

  .home-service-card{
    padding:28px 24px;
  }

  .home-service-card img{
    width:68px;
    height:68px;
  }

  .home-service-card h3{
    font-size:1.45rem;
    margin-top:14px;
  }

  .home-contact,
  .home-contact span,
  .home-contact a{
    font-size:1rem;
  }

  .home-contact strong{
    font-size:1.35rem;
  }

  .home-copy p{
    font-size:.92rem;
  }

  .home-copy{
    margin-top:34px;
  }
}

/* Leistungen (Kobold Bau) */
.services-page{
  background:#ececef;
  color:#242a36;
}

.services-page .container{
  width:min(100%, 1160px);
}

.services-page .site{
  background:#ffffff;
  border-bottom:1px solid #dee1e8;
  backdrop-filter:none;
}

.services-page .navbar{
  padding:20px 0;
}

.services-page .brand img{
  height:48px;
  width:auto;
}

.services-page nav ul{
  gap:22px;
}

.services-page nav a{
  color:#1f2634;
  font-size:1.03rem;
  font-weight:500;
  border-radius:8px;
  padding:8px 10px;
}

.services-page nav a:hover,
.services-page nav a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.services-page .mobile{
  padding:0 0 14px 0;
}

.services-page .mobile a{
  color:#1f2634;
}

.services-page .mobile a:hover,
.services-page .mobile a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.services-block{
  position:relative;
  overflow:hidden;
  padding:96px 0 78px;
}

.services-block::after{
  content:"";
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-position:right center;
  pointer-events:none;
}

.services-block-construction{
  padding-top:132px;
}

.services-block-construction::after{
  background-image:url('../img/hero.jpg');
  background-size:min(76vw, 1080px);
  opacity:.07;
  filter:grayscale(1) brightness(1.65) contrast(.4);
}

.services-block-house::after{
  background-image:url('../img/beyazgebaude.jpeg');
  background-size:min(78vw, 1120px);
  opacity:.08;
  filter:grayscale(1) brightness(1.78) contrast(.35);
}

.services-block-last{
  padding-bottom:64px;
}

.services-block-inner{
  position:relative;
  z-index:1;
}

.services-block h1,
.services-block h2{
  margin:0;
  font-size:clamp(2rem, 3.5vw, 3.45rem);
  letter-spacing:-.02em;
  line-height:1.12;
  font-weight:500;
  color:#232935;
}

.services-content{
  margin-top:34px;
  display:grid;
  grid-template-columns:minmax(0, 520px) minmax(300px, 1fr);
  gap:46px;
  align-items:start;
}

.services-copy{
  display:grid;
  grid-template-columns:96px minmax(0, 1fr);
  gap:24px;
  align-items:flex-start;
  max-width:520px;
}

.services-rule{
  display:block;
  width:86px;
  height:2px;
  margin-top:15px;
  background:#f07a7a;
}

.services-copy p{
  margin:0;
  font-size:1rem;
  line-height:1.62;
  color:#6a707d;
}

.services-media{
  margin:0;
  border-radius:10px;
  border:1px solid #d2d6df;
  overflow:hidden;
  background:#f5f6f9;
  box-shadow:0 10px 28px rgba(15,23,42,.09);
  aspect-ratio:4 / 5;
}

.services-media img{
  width:100%;
  height:100%;
  max-height:760px;
  object-fit:cover;
}

.services-footer{
  background:#ececef;
  border-top:none;
  padding:26px 0 42px;
}

.services-footer-top{
  display:grid;
  grid-template-columns:minmax(260px, 330px) minmax(220px, 320px) minmax(260px, 1fr);
  gap:40px;
  align-items:center;
}

.services-map-wrap{
  border:1px solid #c9ccd5;
  border-radius:4px;
  overflow:hidden;
}

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

.services-contact{
  margin:0;
  display:grid;
  gap:4px;
  font-style:normal;
}

.services-contact strong{
  font-size:1.05rem;
  font-weight:500;
  color:#1f2531;
}

.services-contact span,
.services-contact a{
  color:#1f2531;
  text-decoration:none;
  font-size:1.05rem;
  line-height:1.4;
}

.services-contact a:hover{
  color:#111827;
}

.services-footer-logo{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.services-footer-logo img{
  width:min(360px, 100%);
  height:auto;
}

.services-footer-copy{
  margin-top:48px;
  padding-top:22px;
  border-top:1px solid #bfc3ca;
}

.services-footer-copy p{
  margin:0;
  color:#1f2531;
  font-size:1.03rem;
  line-height:1.45;
}

@media (max-width: 1050px){
  .services-block{
    padding:82px 0 62px;
  }

  .services-block-construction{
    padding-top:102px;
  }

  .services-content{
    grid-template-columns:minmax(0, 1fr) minmax(280px, 420px);
    gap:28px;
  }

  .services-copy{
    grid-template-columns:80px minmax(0, 1fr);
    gap:20px;
    max-width:500px;
  }

  .services-rule{
    width:72px;
  }

  .services-footer-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:26px;
  }

  .services-footer-logo{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .services-page .navbar{
    padding:16px 0;
  }

  .services-page .brand img{
    height:40px;
  }

  .services-block{
    padding:64px 0 48px;
  }

  .services-block-construction{
    padding-top:72px;
  }

  .services-block::after{
    background-size:cover;
    background-position:center;
    opacity:.05;
  }

  .services-block h1,
  .services-block h2{
    font-size:clamp(1.9rem, 10vw, 2.4rem);
  }

  .services-content{
    margin-top:22px;
    grid-template-columns:1fr;
    gap:16px;
  }

  .services-copy{
    grid-template-columns:1fr;
    gap:14px;
    max-width:none;
  }

  .services-rule{
    margin-top:0;
    width:76px;
  }

  .services-copy p{
    font-size:.98rem;
  }

  .services-media{
    max-width:520px;
    aspect-ratio:16 / 10;
  }

  .services-footer-top{
    grid-template-columns:1fr;
  }

  .services-map-wrap iframe{
    height:190px;
  }

  .services-footer-logo{
    justify-content:flex-start;
  }

  .services-footer-copy{
    margin-top:34px;
    padding-top:18px;
  }

  .services-footer-copy p{
    font-size:.95rem;
  }
}

/* Referenzen (Kobold Bau) */
.references-page{
  background:#ececef;
  color:#242a36;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.references-page.reference-lightbox-open{
  overflow:hidden;
}

.references-page .container{
  width:min(100%, 1180px);
}

.references-page .site{
  background:#ffffff;
  border-bottom:1px solid #dee1e8;
  backdrop-filter:none;
}

.references-page .navbar{
  padding:20px 0;
}

.references-page .brand img{
  height:48px;
  width:auto;
}

.references-page nav ul{
  gap:22px;
}

.references-page nav a{
  color:#1f2634;
  font-size:1.03rem;
  font-weight:400;
  border-radius:8px;
  padding:8px 10px;
}

.references-page nav a:hover,
.references-page nav a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.references-page .mobile{
  padding:0 0 14px 0;
}

.references-page .mobile a{
  color:#1f2634;
}

.references-page .mobile a:hover,
.references-page .mobile a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.references-head{
  padding:70px 0 58px;
}

.references-head h1{
  margin:0;
  text-align:center;
  font-size:clamp(2.2rem, 4.3vw, 3.9rem);
  letter-spacing:-.014em;
  line-height:1.1;
  font-weight:300;
  color:#222834;
}

.references-grid-section{
  padding:90px 0 92px;
}

.references-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:52px 38px;
}

.reference-card{
  min-height:0;
}

.reference-media{
  width:100%;
  aspect-ratio:16 / 10;
  border-radius:2px;
  overflow:hidden;
  margin:0 0 22px 0;
  background:#f0f1f4;
  box-shadow:0 10px 24px rgba(21, 28, 38, .08);
}

.reference-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}

.reference-media-link{
  display:block;
  padding:0;
  cursor:zoom-in;
  text-align:left;
  appearance:none;
  text-decoration:none;
  color:inherit;
}

.reference-media-link:hover img{
  transform:scale(1.04);
}

.reference-media-link:focus-visible{
  outline:3px solid rgba(28,72,173,.45);
  outline-offset:4px;
}

.reference-lightbox{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:rgba(8, 11, 20, .88);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

.reference-lightbox[hidden]{
  display:none;
}

.reference-lightbox.open{
  opacity:1;
  pointer-events:auto;
}

.reference-lightbox-figure{
  margin:0;
  max-width:min(94vw, 1260px);
  max-height:90vh;
  display:grid;
  gap:14px;
}

.reference-lightbox-figure img{
  width:100%;
  max-height:min(82vh, 900px);
  object-fit:contain;
  border-radius:6px;
}

.reference-lightbox-figure figcaption{
  color:#e7eaf2;
  text-align:center;
  font-size:1rem;
  line-height:1.4;
}

.reference-lightbox-close{
  position:absolute;
  top:14px;
  right:16px;
  border:0;
  background:rgba(255,255,255,.12);
  color:#ffffff;
  width:42px;
  height:42px;
  border-radius:999px;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
}

.reference-lightbox-close:hover{
  background:rgba(255,255,255,.22);
}

.reference-card h2{
  margin:0;
  font-size:clamp(1.6rem, 2.1vw, 2rem);
  line-height:1.18;
  letter-spacing:-.006em;
  font-weight:400;
  color:#1f2531;
}

.reference-card p{
  margin:6px 0 0 0;
  color:#767c88;
  font-size:clamp(.95rem, 1.2vw, 1.2rem);
  line-height:1.35;
  font-weight:400;
}

.references-footer{
  background:#ececef;
  border-top:none;
  padding:0 0 40px;
}

.references-footer .container{
  border-top:1px solid #bfc3ca;
  padding-top:62px;
}

.references-footer-top{
  display:grid;
  grid-template-columns:minmax(260px, 330px) minmax(230px, 320px) minmax(260px, 1fr);
  gap:42px;
  align-items:center;
}

.references-map-wrap{
  border:1px solid #c9ccd5;
  border-radius:4px;
  overflow:hidden;
}

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

.references-contact{
  margin:0;
  display:grid;
  gap:4px;
  font-style:normal;
}

.references-contact strong{
  font-size:1.06rem;
  font-weight:400;
  color:#1f2531;
}

.references-contact span,
.references-contact a{
  color:#1f2531;
  text-decoration:none;
  font-size:1.06rem;
  line-height:1.38;
}

.references-contact a:hover{
  color:#111827;
}

.references-footer-logo{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.references-footer-logo img{
  width:min(360px, 100%);
  height:auto;
}

.references-footer-copy{
  margin-top:44px;
}

.references-footer-copy p{
  margin:0;
  color:#1f2531;
  font-size:1.03rem;
  line-height:1.45;
}

@media (max-width: 1200px){
  .references-grid{
    gap:44px 30px;
  }
}

@media (max-width: 950px){
  .references-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:38px 24px;
  }

  .reference-card{
    min-height:0;
  }

  .references-footer-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:26px;
  }

  .references-footer-logo{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .references-page .navbar{
    padding:16px 0;
  }

  .references-page .brand img{
    height:40px;
  }

  .references-head{
    padding:56px 0 34px;
  }

  .references-head h1{
    font-size:clamp(2rem, 11vw, 2.55rem);
  }

  .references-grid-section{
    padding:52px 0 58px;
  }

  .references-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .reference-media{
    margin-bottom:14px;
  }

  .reference-card h2{
    font-size:1.5rem;
  }

  .reference-card p{
    font-size:1rem;
    margin-top:6px;
  }

  .reference-lightbox{
    padding:14px;
  }

  .reference-lightbox-close{
    top:10px;
    right:10px;
  }

  .references-footer .container{
    padding-top:34px;
  }

  .references-footer-top{
    grid-template-columns:1fr;
  }

  .references-map-wrap iframe{
    height:188px;
  }

  .references-footer-logo{
    justify-content:flex-start;
  }

  .references-footer-copy{
    margin-top:32px;
  }

  .references-footer-copy p{
    font-size:.95rem;
  }
}

/* Kontakt (Kobold Bau) */
.contact-page{
  background:#ececef;
  color:#242a36;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.contact-page .container{
  width:min(100%, 1140px);
}

.contact-page .site{
  background:#ffffff;
  border-bottom:1px solid #dee1e8;
  backdrop-filter:none;
}

.contact-page .navbar{
  padding:20px 0;
}

.contact-page .brand img{
  height:48px;
  width:auto;
}

.contact-page nav ul{
  gap:22px;
}

.contact-page nav a{
  color:#1f2634;
  font-size:1.03rem;
  font-weight:400;
  border-radius:8px;
  padding:8px 10px;
}

.contact-page nav a:hover,
.contact-page nav a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.contact-page .mobile{
  padding:0 0 14px 0;
}

.contact-page .mobile a{
  color:#1f2634;
}

.contact-page .mobile a:hover,
.contact-page .mobile a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.contact-main{
  padding:118px 0 132px;
}

.contact-main-grid{
  display:grid;
  grid-template-columns:minmax(420px, 1fr) minmax(300px, 330px);
  gap:62px;
  align-items:start;
}

.contact-left h1{
  margin:0;
  font-size:clamp(1.9rem, 3.8vw, 2.8rem);
  line-height:1.1;
  letter-spacing:-.012em;
  font-weight:400;
  color:#232935;
}

.contact-line{
  height:1px;
  margin-top:22px;
  background:#dddfe5;
}

.contact-columns{
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px 30px;
}

.contact-columns h2{
  margin:0;
  color:#ef6464;
  font-size:1.12rem;
  font-weight:500;
  line-height:1.2;
}

.contact-columns p{
  margin:12px 0 0 0;
  color:#5f6674;
  font-size:1rem;
  line-height:1.65;
}

.contact-columns a{
  color:#5f6674;
  text-decoration:none;
}

.contact-columns a:hover{
  color:#222834;
}

.contact-map-wrap{
  margin-top:36px;
  border-radius:6px;
  overflow:hidden;
  border:1px solid #ccd0d8;
  box-shadow:0 10px 26px rgba(21, 28, 38, .07);
}

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

.contact-action-card{
  border:1px solid #d1d4db;
  border-radius:8px;
  padding:38px 34px 30px;
  background:rgba(255,255,255,.18);
  box-shadow:0 12px 28px rgba(23, 33, 48, .05);
  min-height:520px;
  text-align:center;
}

.contact-action-card h2{
  margin:0;
  font-size:1.95rem;
  line-height:1.18;
  letter-spacing:-.01em;
  font-weight:400;
  color:#222834;
}

.contact-action-card p{
  margin:18px 0 0 0;
  color:#6f7683;
  font-size:1rem;
  line-height:1.55;
}

.contact-action-item{
  margin:34px auto 0;
  display:grid;
  justify-items:center;
  gap:8px;
  color:#151a21;
  text-decoration:none;
  padding:10px 6px;
  border-radius:10px;
  transition:background .18s ease, transform .18s ease;
}

.contact-action-item svg{
  width:54px;
  height:54px;
}

.contact-action-item span{
  font-size:1.05rem;
  font-weight:600;
}

.contact-action-item:hover{
  color:#000;
  background:rgba(255,255,255,.35);
  transform:translateY(-1px);
}

.contact-footer{
  background:#ececef;
  border-top:none;
  padding:0 0 40px;
}

.contact-footer .container{
  border-top:1px solid #bfc3ca;
  padding-top:54px;
}

.contact-footer-top{
  display:grid;
  grid-template-columns:minmax(260px, 330px) minmax(230px, 320px) minmax(260px, 1fr);
  gap:42px;
  align-items:center;
}

.contact-footer-map{
  border:1px solid #c9ccd5;
  border-radius:4px;
  overflow:hidden;
}

.contact-footer-map iframe{
  width:100%;
  height:176px;
  border:0;
}

.contact-footer-address{
  margin:0;
  display:grid;
  gap:4px;
  font-style:normal;
}

.contact-footer-address strong{
  font-size:1.06rem;
  font-weight:400;
  color:#1f2531;
}

.contact-footer-address span,
.contact-footer-address a{
  color:#1f2531;
  text-decoration:none;
  font-size:1.06rem;
  line-height:1.38;
}

.contact-footer-address a:hover{
  color:#111827;
}

.contact-footer-logo{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.contact-footer-logo img{
  width:min(360px, 100%);
  height:auto;
}

@media (max-width: 1200px){
  .contact-main{
    padding:96px 0 112px;
  }

  .contact-main-grid{
    gap:38px;
    grid-template-columns:minmax(0, 1fr) minmax(310px, 360px);
  }

  .contact-columns h2{
    font-size:1.05rem;
  }

  .contact-columns p{
    font-size:.98rem;
  }

  .contact-action-card p{
    font-size:.95rem;
  }

  .contact-action-item span{
    font-size:1rem;
  }
}

@media (max-width: 950px){
  .contact-main{
    padding:76px 0 92px;
  }

  .contact-main-grid{
    grid-template-columns:1fr;
    gap:36px;
  }

  .contact-action-card{
    min-height:0;
    padding:32px 24px 24px;
  }

  .contact-footer-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:26px;
  }

  .contact-footer-logo{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .contact-page .navbar{
    padding:16px 0;
  }

  .contact-page .brand img{
    height:40px;
  }

  .contact-main{
    padding:52px 0 64px;
  }

  .contact-left h1{
    font-size:clamp(1.7rem, 10vw, 2.2rem);
  }

  .contact-columns{
    margin-top:30px;
    grid-template-columns:1fr;
    gap:24px;
  }

  .contact-columns p{
    font-size:1rem;
  }

  .contact-columns h2{
    font-size:1.05rem;
  }

  .contact-map-wrap{
    margin-top:22px;
  }

  .contact-map-wrap iframe{
    height:180px;
  }

  .contact-action-card{
    padding:28px 18px 20px;
  }

  .contact-action-card h2{
    font-size:1.55rem;
  }

  .contact-action-card p{
    margin-top:14px;
    font-size:1rem;
  }

  .contact-action-item{
    margin-top:30px;
  }

  .contact-action-item svg{
    width:58px;
    height:58px;
  }

  .contact-action-item span{
    font-size:1.05rem;
  }

  .contact-footer .container{
    padding-top:34px;
  }

  .contact-footer-top{
    grid-template-columns:1fr;
  }

  .contact-footer-map iframe{
    height:188px;
  }

  .contact-footer-logo{
    justify-content:flex-start;
  }
}

/* Impressum (Kobold Bau) */
.impressum-page{
  background:#ececef;
  color:#242a36;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.impressum-page .container{
  width:min(100%, 1280px);
}

.impressum-page .site{
  background:#ffffff;
  border-bottom:1px solid #dee1e8;
  backdrop-filter:none;
}

.impressum-page .navbar{
  padding:20px 0;
}

.impressum-page .brand img{
  height:48px;
  width:auto;
}

.impressum-page nav ul{
  gap:22px;
}

.impressum-page nav a{
  color:#1f2634;
  font-size:1.03rem;
  font-weight:400;
  border-radius:8px;
  padding:8px 10px;
}

.impressum-page nav a:hover,
.impressum-page nav a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.impressum-page .mobile{
  padding:0 0 14px 0;
}

.impressum-page .mobile a{
  color:#1f2634;
}

.impressum-page .mobile a:hover,
.impressum-page .mobile a.active{
  background:rgba(17,24,39,.06);
  color:#111827;
}

.impressum-main{
  padding:34px 0 66px;
}

.impressum-content{
  max-width:980px;
}

.impressum-content h1{
  margin:0;
  font-size:clamp(2.15rem, 3.8vw, 3.3rem);
  line-height:1.1;
  letter-spacing:-.014em;
  font-weight:400;
  color:#232935;
}

.impressum-content section{
  margin-top:26px;
}

.impressum-content h2{
  margin:0;
  font-size:1.16rem;
  font-weight:600;
  line-height:1.35;
  color:#646a78;
}

.impressum-content p{
  margin:0;
  color:#666d7a;
  font-size:1.05rem;
  line-height:1.72;
}

.impressum-content section > p:first-child{
  color:#666d7a;
  font-weight:400;
}

.impressum-content section h2 + p,
.impressum-content section p + p{
  margin-top:6px;
}

.impressum-content a{
  color:#8990a1;
  text-decoration:none;
}

.impressum-content a:hover{
  color:#4a556b;
  text-decoration:underline;
  text-decoration-color:rgba(74,85,107,.42);
  text-underline-offset:2px;
}

.impressum-footer{
  background:#ececef;
  border-top:none;
  padding:22px 0 42px;
}

.impressum-footer-top{
  display:grid;
  grid-template-columns:minmax(260px, 330px) minmax(230px, 320px) minmax(260px, 1fr);
  gap:42px;
  align-items:center;
}

.impressum-map-wrap{
  border:1px solid #c9ccd5;
  border-radius:4px;
  overflow:hidden;
}

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

.impressum-contact{
  margin:0;
  display:grid;
  gap:4px;
  font-style:normal;
}

.impressum-contact strong{
  font-size:1.06rem;
  font-weight:400;
  color:#1f2531;
}

.impressum-contact span,
.impressum-contact a{
  color:#1f2531;
  text-decoration:none;
  font-size:1.06rem;
  line-height:1.38;
}

.impressum-contact a:hover{
  color:#111827;
}

.impressum-footer-logo{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.impressum-footer-logo img{
  width:min(360px, 100%);
  height:auto;
}

.impressum-copy{
  margin-top:44px;
  padding-top:18px;
  border-top:1px solid #bec2ca;
}

.impressum-copy p{
  margin:0;
  color:#1f2531;
  font-size:1.03rem;
  line-height:1.45;
}

@media (max-width: 1000px){
  .impressum-content{
    max-width:100%;
  }

  .impressum-footer-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:26px;
  }

  .impressum-footer-logo{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .impressum-page .navbar{
    padding:16px 0;
  }

  .impressum-page .brand img{
    height:40px;
  }

  .impressum-main{
    padding:24px 0 40px;
  }

  .impressum-content h1{
    font-size:clamp(2rem, 11vw, 2.7rem);
  }

  .impressum-content section{
    margin-top:18px;
  }

  .impressum-content h2{
    font-size:1.02rem;
  }

  .impressum-content p{
    font-size:.98rem;
    line-height:1.64;
  }

  .impressum-footer{
    padding-top:14px;
  }

  .impressum-footer-top{
    grid-template-columns:1fr;
  }

  .impressum-map-wrap iframe{
    height:188px;
  }

  .impressum-footer-logo{
    justify-content:flex-start;
  }

  .impressum-copy{
    margin-top:30px;
    padding-top:16px;
  }

  .impressum-copy p{
    font-size:.95rem;
  }
}
