/* ============================================================
   KALLWELLIS ENGINEERING & CONSULTING — Website-Styles
   Farbschema 2: Preußischblau / Kupfer
   Diese Datei bitte NICHT bearbeiten, wenn Sie nur Texte ändern
   wollen — Texte stehen in content.js
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --blau: #2E4E6E;
  --blau-dunkel: #1E3650;
  --kupfer: #B5652A;
  --text: #2A2A28;
  --text-hell: #4A4A46;
  --leinen: #F6F3EE;
  --border: #E6E1D6;
  --label: #9A8F7E;
  --label-blau: #D9E0E7;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0; }

a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--kupfer); }

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 56px; }

/* ---------- Kupfer-Linie oben ---------- */
.top-line { height: 5px; background: var(--kupfer); }

/* ---------- Header / Navigation ---------- */
header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo .name { font-family: Georgia, serif; font-weight: 700; font-size: 21px; color: var(--blau); }
.logo .sub { font-size: 8px; letter-spacing: 0.14em; color: var(--kupfer); font-weight: 600; }

nav.main-nav { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.navlink { font-size: 14px; color: var(--text); font-weight: 500; position: relative; }
.navlink.active { color: var(--blau); font-weight: 700; border-bottom: 2px solid var(--kupfer); padding-bottom: 4px; }
.navlink.has-dropdown { display: flex; align-items: center; gap: 5px; cursor: default; }
.navlink.has-dropdown svg { flex-shrink: 0; }

.dropdown { position: relative; }
.dropdown-panel {
  display: none; position: absolute; top: 28px; left: -18px; width: 320px;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(30,54,80,0.14); z-index: 20;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-item {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--blau-dunkel);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item .sub-label { display: block; font-size: 11px; font-weight: 500; color: var(--label); margin-top: 2px; }
.dropdown-item.dropdown-extra { background: #FBFAF8; color: var(--text-hell); font-weight: 500; }

.lang-switch { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; }
.lang-switch .active-lang { color: var(--blau); }
.lang-switch .muted-lang { color: #B7B2A8; }
.lang-switch .dot { color: #C9C2B4; }

.btn, .btn-outline, .btn-outline-white {
  display: inline-block; font-size: 14px; font-weight: 600; border-radius: 3px; text-align: center;
  border: none; cursor: pointer;
}
.btn { background: var(--kupfer); color: #FFFFFF; padding: 13px 28px; }
.btn:hover { background: #9c541f; color: #fff; }
.btn-outline { border: 1.5px solid var(--blau); color: var(--blau); padding: 11px 26px; background: none; }
.btn-outline:hover { background: var(--blau); color: #fff; }
.btn-outline.small { padding: 8px 18px; font-size: 13px; }
.btn-outline-white { border: 1.5px solid #fff; color: #fff; padding: 12px 27px; background: none; }
.btn-outline-white:hover { background: #fff; color: var(--blau); }

/* ---------- Labels ---------- */
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--label); margin: 0 0 8px 0; font-weight: 600; }
.label-onblue { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--label-blau); margin: 0 0 8px 0; font-weight: 600; }
.breadcrumb { font-size: 13px; color: var(--label-blau); }
.breadcrumb b { color: #fff; font-weight: 600; }

/* ---------- Hero (Startseite) ---------- */
.hero { width: 100%; background: var(--blau); }
.hero-inner { display: flex; flex-direction: column; gap: 22px; padding: 96px 56px 88px 56px; max-width: 780px; margin: 0 auto; }
.hero-inner h1 { font-size: 38px; line-height: 1.3; color: #fff; }
.hero-inner p.subline { margin: 0; font-size: 15px; line-height: 1.7; color: var(--label-blau); }
.hero-ctas { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Title-Band (Unterseiten) ---------- */
.title-band { background: var(--blau); padding: 44px 56px 40px 56px; display: flex; flex-direction: column; gap: 10px; }
.title-band h1 { font-size: 32px; color: #fff; max-width: 760px; }
.title-band p.lead { margin: 14px 0 0 0; font-size: 15px; color: var(--label-blau); max-width: 620px; line-height: 1.7; }

/* ---------- Generic sections ---------- */
section { padding: 56px 56px 0 56px; }
section:last-of-type { padding-bottom: 56px; }
.max-text { max-width: 820px; }
p.body { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text); max-width: 720px; }
h2.sub { margin: 0 0 18px 0; font-family: Georgia, serif; font-size: 22px; color: var(--blau-dunkel); }

/* ---------- Kacheln (Angebots-Karten) ---------- */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.kachel { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--border); border-radius: 4px; height: 100%; }
.kachel h3 { font-size: 19px; color: var(--blau-dunkel); }
.kachel p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-hell); flex-grow: 1; }
.kachel-link { font-size: 13px; color: var(--blau); font-weight: 600; }

/* ---------- Hinweiszeile ---------- */
.hinweiszeile {
  margin: 28px 0 0 0; padding: 14px 0 14px 20px; border-left: 3px solid var(--kupfer);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hinweiszeile p { margin: 0; font-size: 14px; color: var(--text-hell); line-height: 1.6; }
.hinweiszeile .kachel-link { white-space: nowrap; }

/* ---------- Über-mich-Teaser (Startseite) ---------- */
.teaser { display: flex; gap: 40px; padding: 80px 56px; align-items: center; background: var(--leinen); margin-top: 72px; flex-wrap: wrap; }
.teaser img { width: 220px; height: 260px; object-fit: cover; object-position: center top; border-radius: 4px; flex-shrink: 0; }
.teaser-text { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.teaser-text p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text); }

/* ---------- Über-mich-Seite: Foto + Text ---------- */
.foto-text { display: flex; gap: 48px; padding: 64px 56px 0 56px; align-items: flex-start; flex-wrap: wrap; }
.foto-text img { width: 280px; height: 340px; object-fit: cover; object-position: center top; border-radius: 4px; flex-shrink: 0; }
.foto-text .text-col { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }

/* ---------- Bullet rows (Was ich anbiete) ---------- */
.bullet-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); max-width: 720px; }
.bullet-row:last-child { border-bottom: none; }
.bullet-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #F4F2EE;
  border: 1px solid #C9C2B4; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--blau);
}

/* ---------- Hinweis-Box (rechtlicher Disclaimer) ---------- */
.hinweis-box { display: flex; gap: 14px; max-width: 720px; padding: 20px 22px; background: var(--leinen); border-left: 3px solid var(--kupfer); }
.hinweis-box p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-hell); }
.hinweis-box strong { color: var(--blau-dunkel); }

/* ---------- CTA-Band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; padding: 48px 56px;
  background: var(--blau-dunkel); margin-top: 64px; flex-wrap: wrap; gap: 20px;
}
.cta-band span.cta-text { color: #fff; font-size: 19px; font-family: Georgia, serif; }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px; padding: 56px 56px 64px 56px; }
.kontakt-info { display: flex; flex-direction: column; gap: 26px; }
.kontakt-info .foto { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.box { background: #F4F2EE; border: 1.5px dashed #C9C2B4; border-radius: 4px; padding: 20px; }
.ph-text { color: #6B6B6B; font-size: 13px; line-height: 1.6; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; color: #6B6B6B; }
.field input, .field textarea {
  height: 40px; background: #fff; border: 1px solid #C9C2B4; border-radius: 3px;
  font-family: inherit; font-size: 14px; padding: 0 10px;
}
.field textarea { height: 110px; padding: 10px; resize: vertical; }
.kontakt-form { display: flex; flex-direction: column; }

/* ---------- Footer ---------- */
footer.site-footer {
  display: flex; justify-content: space-between; padding: 40px 56px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
footer.site-footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Angebot-Übersichtsseite ---------- */
.angebot-liste { display: flex; flex-direction: column; gap: 0; max-width: 900px; }
.angebot-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.angebot-row:last-child { border-bottom: none; }
.angebot-row-text h3 { font-size: 19px; color: var(--blau-dunkel); margin-bottom: 6px; }
.angebot-row-text p { margin: 0; font-size: 14px; color: var(--text-hell); max-width: 560px; }

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .wrap, section, header.site-header, .hero-inner, .title-band,
  .teaser, .foto-text, .kontakt-grid, .cta-band, footer.site-footer {
    padding-left: 24px; padding-right: 24px;
  }
  .kacheln { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .foto-text { flex-direction: column; }
  .foto-text img { width: 200px; height: 240px; }
}

@media (max-width: 700px) {
  nav.main-nav {
    display: none;
    flex-direction: column; align-items: flex-start; gap: 18px;
    width: 100%; padding-top: 18px;
  }
  .nav-toggle:checked ~ nav.main-nav { display: flex; }
  .nav-toggle-label {
    display: block; font-size: 26px; cursor: pointer; color: var(--blau); line-height: 1;
  }
  header.site-header { position: relative; }
  .dropdown-panel { position: static; box-shadow: none; border: none; width: 100%; margin-top: 8px; display: none; }
  .dropdown:hover .dropdown-panel { display: none; }
  .dropdown.open .dropdown-panel { display: block; }
  .hero-inner h1 { font-size: 28px; }
  .title-band h1 { font-size: 26px; }
}
