/* ==========================================================================
   Gebr. Jansen GmbH – Dachdeckermeister
   Design-System: Modern, seriös, handwerklich. Glas-Akzente auf klarer Struktur.
   Farben: Blau #2563EB / Akzent Orange #F97316 / Slate. Fonts: Outfit + Work Sans.
   Mobile-first. Breakpoints: Basis < 600, ab 600, ab 900, ab 1200.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --brand:        #2563EB;
  --brand-700:    #1d4ed8;
  --brand-900:    #14295f;
  --brand-050:    #eff4ff;
  --accent:       #F97316;
  --accent-600:   #ea6a0c;
  --ink:          #1E293B;
  --ink-soft:     #475569;
  --muted:        #64748B;
  --bg:           #F8FAFC;
  --surface:      #ffffff;
  --line:         #e2e8f0;
  --slate-950:    #0b1220;

  --container:    1160px;
  --radius:       16px;
  --radius-sm:    12px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md:    0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg:    0 24px 60px -20px rgba(20,41,95,.28);
  --ease:         cubic-bezier(.22,.61,.36,1);
  --icon:         24px;   /* Basis-Icongröße – NIE riesig */
}

/* ---------- Reset / Basis ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;            /* kein horizontales Scrollen */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-600); }
h1,h2,h3,h4 { font-family: "Outfit", system-ui, sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: linear-gradient(180deg, #fff 0%, var(--brand-050) 100%); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; min-height: 48px; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(249,115,22,.7); }
.btn--primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--brand-900); color: #fff; }
.btn--dark:hover { background: #0f2350; color:#fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); color:#fff; transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--brand-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--brand-900); letter-spacing: -.01em; }
.brand:hover { color: var(--brand-900); }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__sub { display:block; font-family:"Work Sans",sans-serif; font-weight:500; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-top:2px; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav ul, .nav li, .footer-bottom nav, .footer-bottom nav ul, .footer-bottom nav li, .nav-fallback, .nav-fallback li { list-style: none; margin: 0; padding: 0; }
.nav a { font-family: "Outfit", sans-serif; font-weight: 500; color: var(--ink); padding: .55rem .85rem; border-radius: 10px; }
.nav a:hover, .nav .current-menu-item > a { color: var(--brand-700); background: var(--brand-050); }
.header__cta { display: inline-flex; align-items: center; gap: .5rem; }
.header__phone { display:none; font-family:"Outfit",sans-serif; font-weight:600; color:var(--brand-900); }
.header__phone svg { width: 20px; height: 20px; color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; color: var(--brand-900);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__media > img { position: absolute; inset: 0; }  /* Einzelbild-Fallback */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,18,32,.62) 0%, rgba(11,18,32,.55) 45%, rgba(11,18,32,.82) 100%),
    radial-gradient(1200px 500px at 15% 20%, rgba(37,99,235,.35), transparent 60%);
}
.hero__inner { padding-block: clamp(72px, 14vw, 140px); max-width: 760px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; text-wrap: balance; }
.hero__text { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: rgba(255,255,255,.92); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero__trust-item { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: rgba(255,255,255,.94); }
.hero__trust-item svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Kennzahlen / Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: -46px; position: relative; z-index: 5; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow-md);
}
.stat__num { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--brand-700); line-height: 1; }
.stat__num .u { color: var(--accent); }
.stat__label { font-size: .92rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Leistungen (Service-Cards) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cdd8ea; }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__icon {
  width: 46px; height: 46px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--brand-050); color: var(--brand-700);
  margin: -3.2rem 0 1rem; position: relative; box-shadow: var(--shadow-sm); border: 1px solid #fff;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card__body p { color: var(--ink-soft); font-size: .98rem; }
.card__link { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; font-family: "Outfit", sans-serif; font-weight: 600; color: var(--brand-700); }
.card__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }

/* ---------- Über uns / Split ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; left: 16px; bottom: -18px;
  background: var(--brand-900); color: #fff; border-radius: 14px; padding: .9rem 1.15rem;
  box-shadow: var(--shadow-lg); font-family: "Outfit", sans-serif; line-height: 1.1;
}
.split__badge b { display: block; font-size: 1.7rem; font-weight: 800; }
.split__badge span { font-size: .82rem; color: rgba(255,255,255,.8); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* ---------- CTA Band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; border-radius: 0; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, rgba(20,41,95,.94), rgba(11,18,32,.8)); }
.cta-band__inner { display: grid; gap: 1.2rem; text-align: center; padding-block: clamp(48px, 8vw, 88px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 44px); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; align-items: flex-start; gap: .9rem; }
/* Icons in Kontakt/Anfahrt bewusst klein und fixiert */
.info-ic { width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-050); color: var(--brand-700); }
.info-ic svg { width: 22px; height: 22px; }
.info-list b { font-family: "Outfit", sans-serif; display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.info-list span, .info-list a { color: var(--ink-soft); }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: var(--radius); margin-top: 1.2rem; box-shadow: var(--shadow-sm); }
.hours { list-style: none; padding: 0; margin: .4rem 0 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 600; color: var(--ink); }

/* Contact Form 7 – aufgeräumt */
.wpcf7 { margin-top: .4rem; }
.wpcf7 label { display: block; font-family: "Outfit", sans-serif; font-weight: 600; font-size: .9rem; margin: .8rem 0 .3rem; color: var(--ink); }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 .wpcf7-submit { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font-family: "Outfit", sans-serif; font-weight: 600; min-height: 48px; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.wpcf7 .wpcf7-submit:hover { background: var(--accent-600); transform: translateY(-2px); }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }

/* ---------- Inhaltsseiten (Gutenberg) ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-900), #16305f); color: #fff; }
.page-hero__inner { padding-block: clamp(56px, 10vw, 96px); }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 60ch; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .8rem; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.entry { max-width: 780px; margin-inline: auto; }
.entry :is(h2,h3) { margin-top: 1.6em; }
.entry img { border-radius: var(--radius); }
.entry ul li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: #cbd5e1; padding-block: clamp(48px, 7vw, 72px) 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.4rem; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 1rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__sub { color: #94a3b8; }
.footer-brand p { color: #94a3b8; font-size: .95rem; margin-top: 1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-menu a { color: #cbd5e1; }
.footer-menu a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; color: #cbd5e1; }
.footer-contact svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #94a3b8; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Mobile-Navigation (Burger) < 900px */
@media (max-width: 899.98px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 1rem; border-radius: 10px; font-size: 1.05rem; min-height: 48px; display: flex; align-items: center; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header__phone { display: inline-flex; align-items: center; gap: .45rem; }
}

/* ab 600px */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { padding-inline: 8%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
}

/* ab 900px */
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
