/* =================================================================
   SOWACOM Mittelland – Central Stylesheet
   Brand blue: #3C5989  |  Dark section: #2B3F6A  |  Light: #E2E9F1
   ================================================================= */

:root {
  --blue:       #3C5989;
  --blue-dark:  #2B3F6A;
  --blue-mid:   #4a6da8;
  --blue-light: #E2E9F1;
  --blue-pale:  #f0f4fa;
  --gold:       #eab82f;
  --text:       #1a1e2e;
  --text-sub:   #4a5368;
  --text-light: #6b7589;
  --white:      #ffffff;
  --border:     #d4dded;
  --bg:         #f7f9fc;

  --font: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --nav-h: 72px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 2px 12px rgba(43,63,106,.08);
  --shadow-md: 0 8px 32px rgba(43,63,106,.14);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; font-weight: 800; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
p { color: var(--text-sub); margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
section.dark { background: var(--blue-dark); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255,255,255,.75); }
section.bg { background: var(--bg); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  border-radius: 50px; padding: .2rem .85rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.tag.light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

/* ================================================================
   HEADER / NAV  – white background, colored logo
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  color: var(--text-sub); font-size: .93rem; font-weight: 500;
  transition: color .18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue); text-decoration: none;
}
.nav-links .nav-cta {
  background: var(--blue); color: var(--white) !important;
  border-radius: var(--r); padding: .5rem 1.2rem;
  font-weight: 600 !important; transition: background .18s !important;
}
.nav-links .nav-cta:hover {
  background: var(--blue-dark) !important; text-decoration: none !important;
}

.nav-phone {
  color: var(--text-sub); font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .4rem;
}
.nav-phone::before {
  content: '';
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-radius: 50%;
}
.nav-phone:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ================================================================
   TELEFONKALKULATOR
   ================================================================ */
.calc-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  background: var(--white); border-radius: var(--r-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
  max-width: 900px; margin: 0 auto;
}

.calc-group { margin-bottom: 1.8rem; }
.calc-group:last-child { margin-bottom: 0; }
.calc-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text); margin-bottom: .6rem;
}

.calc-slider-wrap {
  display: flex; align-items: center; gap: 1rem;
}
.calc-slider-wrap input[type=range] {
  flex: 1; height: 4px; border-radius: 4px;
  accent-color: var(--blue); cursor: pointer;
}
.calc-slider-wrap output {
  min-width: 52px; text-align: right;
  font-weight: 700; font-size: .95rem; color: var(--blue);
}

.calc-result {
  background: var(--blue-pale); border-radius: var(--r-lg);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  font-size: .94rem; color: var(--text-sub);
}
.calc-result-row strong { color: var(--text); font-weight: 700; }
.calc-result-row.highlight { border-bottom-color: var(--blue); }
.calc-result-row.highlight strong { color: var(--blue); }

.calc-result-savings {
  background: var(--blue); border-radius: var(--r);
  padding: 1.2rem 1.5rem; text-align: center; margin-top: .4rem;
}
.savings-label { font-size: .8rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .05em; }
.savings-amount { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1.2; margin: .3rem 0; }
.savings-year { font-size: .85rem; color: rgba(255,255,255,.8); }
.calc-note { font-size: .78rem; color: var(--text-light); font-style: italic; margin: 0; }

/* ================================================================
   HERO – white bg, split: text left + image right
   ================================================================ */
.hero {
  background: var(--white);
  padding: 5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.hero-text { max-width: 580px; }

.stars {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem;
}
.stars span { color: var(--gold); font-size: 1rem; }
.stars em { font-style: normal; color: var(--text-sub); font-size: .9rem; }

.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p { font-size: 1.05rem; margin-bottom: 2rem; }

/* CTA button: dark navy, triangle icon */
.btn-cta {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--blue-dark); color: var(--white);
  padding: .8rem 1.8rem; border-radius: var(--r);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-transform: uppercase; transition: background .18s;
  text-decoration: none;
}
.btn-cta::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 11px;
  aspect-ratio: 18.86 / 24.899;   /* abgerundetes Dreieck, Pfeilform */
  background: var(--white);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0.551 18.86 24.899' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M16.233 8.038c3.502 2.381 3.502 7.543 0 9.924L6.249 24.75C3.594 26.557 0 24.655 0 21.444V4.557C0 1.346 3.594-.556 6.25 1.25z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0.551 18.86 24.899' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M16.233 8.038c3.502 2.381 3.502 7.543 0 9.924L6.249 24.75C3.594 26.557 0 24.655 0 21.444V4.557C0 1.346 3.594-.556 6.25 1.25z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;       mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;     mask-repeat: no-repeat;
}
.btn-cta:hover { background: var(--blue); text-decoration: none; }

/* Hero image – bereits korrekt zugeschnitten */
.hero-image {
  flex-shrink: 0;
}
.hero-image img {
  width: 100%; height: auto;
}

/* ================================================================
   DARK SPLIT SECTION  – text left, features right
   ================================================================ */
.dark-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.dark-split h2 { color: var(--white); }
.dark-split p { color: rgba(255,255,255,.78); }

.icon-features { display: flex; flex-direction: column; gap: 1.5rem; }
.icon-feat {
  display: flex; align-items: flex-start; gap: 1rem;
}
.icon-feat .ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-feat .ico svg { width: 20px; height: 20px; fill: var(--white); }
.icon-feat p { color: rgba(255,255,255,.82); font-size: .95rem; margin: 0; }

/* ================================================================
   GENERIC BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; border-radius: var(--r);
  font-weight: 600; font-size: .93rem; border: 2px solid transparent;
  cursor: pointer; transition: all .18s; text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); text-decoration: none; }
.btn-light { background: var(--white); color: var(--blue-dark); }
.btn-light:hover { background: var(--blue-light); text-decoration: none; }

/* ================================================================
   PRICING / PACKAGE CARDS
   ================================================================ */
.pkg-grid {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
}
.pkg-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.pkg-grid.cols-2 { grid-template-columns: repeat(2,1fr); max-width: 760px; margin-left: auto; margin-right: auto; }

.pkg-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pkg-card.highlight { border-color: var(--blue); }
.pkg-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.pkg-card .desc { font-size: .88rem; color: var(--text-light); margin-bottom: 1.2rem; }
.pkg-card ul { flex: 1; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.pkg-card ul li { font-size: .88rem; color: var(--text-sub); padding-left: 1.1rem; position: relative; }
.pkg-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.pkg-price { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.pkg-price-note { font-size: .8rem; color: var(--text-light); margin: .2rem 0 1.2rem; }

/* ================================================================
   FEATURE ICONS (3-col)
   ================================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 2.5rem; }
.feat-item { text-align: center; padding: 2rem 1.2rem; }
.feat-icon {
  width: 58px; height: 58px; background: var(--blue-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem;
}
.feat-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.feat-item h3 { font-size: 1rem; }
.feat-item p { font-size: .9rem; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testi {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.testi blockquote { font-size: .92rem; color: var(--text-sub); font-style: italic; margin-bottom: .75rem; }
.testi cite { font-size: .8rem; color: var(--blue); font-style: normal; font-weight: 600; }

/* ================================================================
   AUDIT / INFO BOX
   ================================================================ */
.info-box {
  background: var(--blue-light); border-radius: var(--r-lg);
  padding: 2rem; margin: 1.5rem 0;
}
.info-box h4 { color: var(--blue); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }

.check-list { display: flex; flex-direction: column; gap: .75rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .94rem; color: var(--text-sub);
}
.check-list li::before {
  content: '';
  flex-shrink: 0; margin-top: .28rem;
  width: 18px; height: 18px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-radius: 50%;
}

.q-list { display: flex; flex-direction: column; gap: .7rem; }
.q-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .94rem; color: var(--text-sub);
}
.q-list li::before {
  content: '?'; flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--blue); color: var(--white);
  border-radius: 50%; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: .22rem;
}

.price-big { font-size: 1.8rem; font-weight: 800; color: var(--blue); margin: 1.2rem 0 .3rem; }
.price-note { font-size: .82rem; color: var(--text-light); font-style: italic; }

/* ================================================================
   SPLIT LAYOUT (white sections)
   ================================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-img img {
  display: block; width: 100%; max-width: 420px; max-height: none;
  aspect-ratio: 628.217 / 860.496; object-fit: cover; object-position: center;
  margin: 0 auto; border-radius: 0; box-shadow: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.783 0.752 628.217 860.496' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M48.018 521.336c-62.98-43.758-62.98-136.914 0-180.672L519.059 13.387C565.475-18.863 629 14.353 629 70.873v720.254c0 56.52-63.525 89.736-109.941 57.486z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.783 0.752 628.217 860.496' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M48.018 521.336c-62.98-43.758-62.98-136.914 0-180.672L519.059 13.387C565.475-18.863 629 14.353 629 70.873v720.254c0 56.52-63.525 89.736-109.941 57.486z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ================================================================
   CTA BANNER (dark)
   ================================================================ */
.cta-banner {
  background: var(--blue-dark); padding: 5rem 0; text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto 2rem; }

/* ================================================================
   INDEX CARDS (Startseite – 3 Service Cards)
   ================================================================ */
.card-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-top: 2rem; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.2rem;
  color: var(--text); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); text-decoration: none; }
.card-ico {
  width: 52px; height: 52px; background: var(--blue-light); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.card-ico svg { width: 24px; height: 24px; fill: var(--blue); }
.card p { flex: 1; font-size: .94rem; }
.card .star-row { display: flex; gap: 2px; margin: 1rem 0 .3rem; }
.card .star-row span { color: var(--gold); font-size: .92rem; }
.card .cust { font-size: .82rem; color: var(--text-light); }
.card .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.5rem; }
.c-list { display: flex; flex-direction: column; gap: 1rem; }
.c-list li { display: flex; align-items: flex-start; gap: .9rem; }
.c-ico {
  width: 38px; height: 38px; background: var(--blue-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.c-ico svg { width: 16px; height: 16px; fill: var(--blue); }
.c-detail strong { display: block; font-size: .82rem; color: var(--text); margin-bottom: .1rem; }
.c-detail, .c-detail a { font-size: .94rem; color: var(--text-sub); }
.c-detail a:hover { color: var(--blue); }

.form-box { background: var(--white); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-box h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.f-group label { font-size: .84rem; font-weight: 600; color: var(--text); }
.f-group input, .f-group textarea {
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: .65rem .9rem; font-size: .93rem; font-family: var(--font);
  color: var(--text); background: var(--white); transition: border-color .18s;
}
.f-group input:focus, .f-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60,89,137,.1);
}
.f-group textarea { resize: vertical; min-height: 110px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.72); padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1.5rem;
}
.footer-brand img { height: 36px; margin-bottom: .9rem; }
.footer-brand p { font-size: .88rem; line-height: 1.75; color: var(--white); }
.footer-brand a { color: var(--white); }
.footer-col h4 {
  color: var(--white); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .18s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .18s; }
.footer-legal a:hover { color: var(--white); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { width: 280px; height: 260px; margin: 0 auto; }
  .dark-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip { direction: ltr; }
  .card-row { grid-template-columns: repeat(2,1fr); }
  .pkg-grid.cols-3, .pkg-grid.cols-2 { grid-template-columns: 1fr; max-width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-cta { width: 100%; justify-content: center; }
}
