/* =============================================
   IT-Flow Solutions – Shared Stylesheet
   ============================================= */

/* ─── LOCAL FONTS (DSGVO-konform, kein Google-Server-Kontakt) ─── */
@font-face {
  font-family: 'Merriweather Sans';
  src: url('fonts/merriweather-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Merriweather Sans';
  src: url('fonts/merriweather-sans-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Platypi';
  src: url('fonts/platypi-latin-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

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

:root {
  --navy:       #1a2e5a;
  --navy-dark:  #121f3d;
  --gold:       #e8a020;
  --white:      #ffffff;
  --gray-bg:    #f4f6fa;
  --text:       #2c3142;
  --text-muted: #6b7280;
  --max-w:      1200px;
  --pad:        clamp(20px, 5%, 80px);
  --f-primary:   'Merriweather Sans', sans-serif;
  --f-secondary: 'Public Sans', sans-serif;
  --f-accent:    'Platypi', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--f-secondary); font-weight: 300; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ─── NAVBAR ─── */
nav { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 44px; height: 44px; border-radius: 14px; object-fit: contain; padding: 5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text .l1 { font-family: var(--f-primary); font-size: .95rem; font-weight: 700; color: var(--navy); }
.logo-text .l2 { font-family: var(--f-primary); font-size: .72rem; font-weight: 700; color: var(--navy); opacity: .6; letter-spacing: .02em; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--f-primary); font-weight: 700; text-decoration: none; color: var(--text); font-size: .86rem; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }

/* ─── BUTTONS ─── */
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-navy { font-family: var(--f-primary); font-weight: 700; background: var(--navy); color: var(--white); padding: 11px 22px; border-radius: 5px; font-size: .85rem; text-decoration: none; border: 2px solid var(--navy); transition: all .2s; white-space: nowrap; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-ghost { font-family: var(--f-primary); font-weight: 700; background: transparent; color: var(--navy); padding: 11px 22px; border-radius: 5px; font-size: .85rem; text-decoration: none; border: 2px solid #c8d3e4; transition: all .2s; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn-gold { font-family: var(--f-primary); font-weight: 700; background: var(--gold); color: var(--white); padding: 11px 22px; border-radius: 5px; font-size: .85rem; text-decoration: none; border: 2px solid var(--gold); display: inline-block; transition: all .2s; white-space: nowrap; }
.btn-gold:hover { opacity: .9; transform: translateY(-1px); }
.btn-wh { font-family: var(--f-primary); font-weight: 700; background: transparent; color: var(--white); padding: 11px 22px; border-radius: 5px; font-size: .85rem; text-decoration: none; border: 2px solid rgba(255,255,255,.45); display: inline-block; transition: all .2s; white-space: nowrap; }
.btn-wh:hover { background: rgba(255,255,255,.1); }

/* ─── FOOTER ─── */
footer { background: var(--navy-dark); padding: 42px 0 22px; }
.ft-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.ft-nav { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.ft-nav a { font-family: var(--f-primary); font-weight: 700; color: rgba(255,255,255,.7); font-size: .84rem; text-decoration: none; transition: color .2s; }
.ft-nav a:hover { color: var(--gold); }
.ft-copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; text-align: center; font-family: var(--f-secondary); font-weight: 300; color: rgba(255,255,255,.38); font-size: .75rem; }
.ft-copy a { color: rgba(255,255,255,.38); text-decoration: underline; }
.ft-copy a:hover { color: var(--gold); }


/* =============================================
   INDEX PAGE STYLES
   ============================================= */

/* ─── HERO ─── */
.hero { background: var(--white); overflow: hidden; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 70px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 82vh; }
.hero-content { flex: 0 1 500px; }
.hero h1 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
.hero h1 em { font-family: var(--f-accent); font-weight: 700; font-style: italic; color: var(--gold); }
.hero p { font-family: var(--f-secondary); font-weight: 300; font-size: .96rem; line-height: 1.78; color: var(--text-muted); margin-bottom: 30px; }

.hero-circles { flex: 0 0 360px; width: 360px; height: 360px; position: relative; }
.hero-circles .cr { position: absolute; border-radius: 50%; border: 1.5px solid rgba(180,196,220,.45); background: rgba(215,228,243,.1); }
.cr.r1 { inset: 0; } .cr.r2 { inset: 13%; } .cr.r3 { inset: 26%; }
.cr.r4 { inset: 37%; background: rgba(210,225,242,.2); }
.cr.r5 { inset: 45%; background: rgba(190,210,235,.3); border: none; }

/* ─── SO EINFACH GEHT ES ─── */
.se-section {
  position: relative;
  background: var(--navy);
  padding: 80px 0 90px;
  text-align: center;
}
.se-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 85% 85%, 70% 55%, 55% 75%, 40% 45%, 25% 70%, 10% 40%, 0% 60%);
}
.se-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--gray-bg);
  clip-path: polygon(0% 40%, 10% 65%, 25% 35%, 40% 60%, 55% 30%, 70% 55%, 85% 25%, 100% 50%, 100% 100%, 0% 100%);
}
.se-section h2 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--white); position: relative; z-index: 1; }

/* ─── CARDS ─── */
.cards-wrap { background: var(--gray-bg); padding: 48px 0 64px; }
.cards-grid { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card { background: var(--white); border-radius: 8px; padding: 28px 20px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.card-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; box-shadow: 0 3px 10px rgba(232,160,32,.28); }
.card-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--f-primary); font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 9px; }
.card p  { font-family: var(--f-secondary); font-weight: 300; font-size: .81rem; line-height: 1.68; color: var(--text-muted); flex: 1; }
.card-num { margin-top: 16px; font-family: var(--f-primary); font-size: 1rem; font-weight: 700; color: rgba(26,46,90,.18); }

.cards-wave-end { background: var(--gray-bg); line-height: 0; }
.cards-wave-end svg { display: block; width: 100%; height: 55px; }

/* ─── PREISRECHNER ─── */
.rechner-sec { background: var(--white); padding: 72px 0; }
.rechner-in  { max-width: 800px; margin: 0 auto; padding: 0 var(--pad); }
.rechner-in h2 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--navy); margin-bottom: 6px; }
.rechner-in .sub { font-family: var(--f-secondary); font-weight: 300; color: var(--text-muted); font-size: .91rem; margin-bottom: 36px; }
.tog-wrap { display: flex; background: var(--gray-bg); border-radius: 7px; padding: 4px; gap: 3px; width: fit-content; margin: 0 auto 30px; }
.tog-btn { font-family: var(--f-primary); font-weight: 700; padding: 9px 20px; border-radius: 5px; border: none; font-size: .84rem; cursor: pointer; transition: all .2s; color: var(--text-muted); background: transparent; white-space: nowrap; }
.tog-btn.on { background: var(--navy); color: var(--white); box-shadow: 0 2px 8px rgba(26,46,90,.22); }
.sl-group { margin-bottom: 26px; }
.sl-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.sl-row .lbl { font-family: var(--f-primary); font-weight: 700; color: var(--navy); font-size: .88rem; }
.sl-row .bdg { background: var(--gold); color: #fff; font-family: var(--f-primary); font-size: .73rem; font-weight: 700; padding: 2px 11px; border-radius: 20px; min-width: 68px; text-align: center; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--gold) 0%, var(--gold) var(--pct,0%), #dde3ee var(--pct,0%), #dde3ee 100%); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(232,160,32,.25); cursor: grab; }
.sl-ticks { display: flex; justify-content: space-between; margin-top: 5px; }
.sl-ticks span { font-family: var(--f-secondary); font-weight: 300; font-size: .72rem; color: var(--text-muted); }
.r-result { background: var(--navy); border-radius: 10px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; box-shadow: 0 8px 28px rgba(26,46,90,.2); }
.r-lbl { font-family: var(--f-secondary); font-weight: 300; color: rgba(255,255,255,.55); font-size: .8rem; margin-bottom: 4px; }
.r-price { font-size: 1.9rem; font-weight: 700; color: var(--white); display: flex; align-items: baseline; gap: 6px; }
.r-price .pca { font-family: var(--f-secondary); font-size: .82rem; font-weight: 300; color: rgba(255,255,255,.5); }
.r-price .pval { font-family: var(--f-primary); color: var(--gold); }
.r-note { font-family: var(--f-secondary); font-weight: 300; color: rgba(255,255,255,.38); font-size: .72rem; margin-top: 3px; }
.r-btn a { font-family: var(--f-primary); font-weight: 700; background: var(--gold); color: var(--white); padding: 11px 20px; border-radius: 6px; font-size: .84rem; text-decoration: none; display: inline-block; transition: all .2s; white-space: nowrap; }
.r-btn a:hover { opacity: .9; transform: translateY(-1px); }

/* ─── ÜBER UNS ─── */
.ue-outer { background: var(--white); }
.ue-inner { max-width: var(--max-w); margin: 0 auto; padding: 72px var(--pad); display: flex; gap: 60px; align-items: flex-start; }
.ue-text { flex: 1 1 0; min-width: 0; }
.ue-text h2 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--navy); margin-bottom: 18px; }
.ue-text p { font-family: var(--f-secondary); font-weight: 300; font-size: .91rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 12px; }
.founder-row { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }
.fchip { display: flex; align-items: center; gap: 8px; background: var(--gray-bg); border: 1px solid #dde3ee; padding: 8px 13px; border-radius: 40px; }
.fav { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--f-primary); font-size: .68rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.fchip .fn { font-family: var(--f-primary); font-size: .8rem; font-weight: 700; color: var(--navy); }
.fchip .fr { font-family: var(--f-secondary); font-weight: 300; font-size: .71rem; color: var(--text-muted); }
.ue-img { flex: 1 1 0; min-width: 0; }
.ue-img .ph { width: 100%; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.ue-img .ph svg { width: 100%; height: 100%; display: block; }

/* ─── CTA ─── */
.cta-sec { position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,15,35,.88) 45%, rgba(8,15,35,.5) 100%), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1400&q=80') center/cover no-repeat; }
.cta-ct { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 72px var(--pad); width: 100%; }
.cta-ct h2 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--white); margin-bottom: 26px; line-height: 1.3; max-width: 480px; }
.cta-ct h2 em { font-family: var(--f-accent); font-weight: 700; font-style: italic; color: var(--gold); }


/* =============================================
   IMPRESSUM PAGE STYLES
   ============================================= */

.page-header { background: var(--navy); padding: 56px var(--pad) 48px; text-align: center; }
.page-header h1 { font-family: var(--f-primary); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white); margin-bottom: 10px; }
.page-header p { font-family: var(--f-secondary); font-weight: 300; color: rgba(255,255,255,.6); font-size: .95rem; }

.content-wrap { max-width: 780px; margin: 0 auto; padding: 64px var(--pad) 80px; }
.section { margin-bottom: 48px; }
.section h2 { font-family: var(--f-primary); font-weight: 700; font-size: 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.section p, .section address { font-family: var(--f-secondary); font-weight: 300; font-size: .95rem; line-height: 1.85; color: var(--text-muted); font-style: normal; }
.section a { color: var(--navy); font-weight: 600; text-decoration: none; transition: color .2s; }
.section a:hover { color: var(--gold); }

.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-family: var(--f-secondary); font-size: .95rem; line-height: 1.85; }
.info-grid .key { font-weight: 600; color: var(--navy); white-space: nowrap; }
.info-grid .val { font-weight: 300; color: var(--text-muted); }
.info-grid .val a { color: var(--navy); font-weight: 600; text-decoration: none; }
.info-grid .val a:hover { color: var(--gold); }


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

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .hero-circles { flex: 0 0 260px; width: 260px; height: 260px; }
}
@media (max-width: 768px) {
  .hero-circles { display: none; }
  .ue-inner { flex-direction: column; gap: 36px; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .tog-wrap { flex-direction: column; width: 100%; }
  .r-result { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
}


/* =============================================
   DATENSCHUTZ PAGE STYLES
   ============================================= */

.dse-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 64px var(--pad) 80px;
}
.dse-wrap h1 {
  font-family: var(--f-primary); font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--navy); margin-bottom: 8px;
}
.dse-wrap .stand {
  font-family: var(--f-secondary); font-weight: 300;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 40px;
}
.dse-wrap ul.index {
  background: var(--gray-bg); border-radius: 8px;
  padding: 20px 24px; margin-bottom: 48px; list-style: none;
}
.dse-wrap ul.index li { margin-bottom: 6px; }
.dse-wrap ul.index a {
  font-family: var(--f-secondary); font-weight: 400;
  font-size: .9rem; color: var(--navy); text-decoration: none; transition: color .2s;
}
.dse-wrap ul.index a:hover { color: var(--gold); }
.dse-wrap h2 {
  font-family: var(--f-primary); font-weight: 700;
  font-size: 1.05rem; color: var(--navy);
  margin: 40px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.dse-wrap h3 {
  font-family: var(--f-primary); font-weight: 700;
  font-size: .92rem; color: var(--navy); margin: 24px 0 8px;
}
.dse-wrap p {
  font-family: var(--f-secondary); font-weight: 300;
  font-size: .9rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 12px;
}
.dse-wrap a { color: var(--navy); font-weight: 400; text-decoration: underline; transition: color .2s; }
.dse-wrap a:hover { color: var(--gold); }
.dse-wrap strong { font-weight: 600; color: var(--text); }
.dse-wrap ul:not(.index):not(.m-elements):not(.glossary) { margin: 8px 0 12px 20px; }
.dse-wrap ul:not(.index) li {
  font-family: var(--f-secondary); font-weight: 300;
  font-size: .9rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 5px;
}
.dse-wrap ul.m-elements { list-style: none; margin: 12px 0; }
.dse-wrap ul.m-elements li {
  font-family: var(--f-secondary); font-weight: 300;
  font-size: .88rem; line-height: 1.75; color: var(--text-muted);
  margin-bottom: 8px; padding-left: 12px; border-left: 2px solid rgba(26,46,90,.12);
}
.dse-wrap ul.glossary { list-style: none; margin: 12px 0; }
.dse-wrap ul.glossary li {
  font-family: var(--f-secondary); font-weight: 300;
  font-size: .88rem; line-height: 1.75; color: var(--text-muted);
  margin-bottom: 14px; padding: 12px 16px;
  background: var(--gray-bg); border-radius: 6px;
}
.dse-wrap p.seal {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #e2e8f0; font-size: .8rem; color: var(--text-muted);
}
.dse-notice {
  background: #fff8e6; border: 1.5px solid var(--gold);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 32px;
  font-family: var(--f-secondary); font-weight: 400;
  font-size: .88rem; line-height: 1.7; color: var(--text);
}
.dse-notice strong { color: var(--navy); }


/* =============================================
   KONTAKTFORMULAR
   ============================================= */

.kontakt-sec {
  background: var(--gray-bg);
  padding: 80px 0;
}
.kontakt-inner {
  max-width: 680px; margin: 0 auto; padding: 0 var(--pad);
}
.kontakt-inner h2 {
  font-family: var(--f-primary); font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--navy); margin-bottom: 8px;
}
.kontakt-inner .sub {
  font-family: var(--f-secondary); font-weight: 300;
  color: var(--text-muted); font-size: .93rem; margin-bottom: 36px;
}


.kontakt-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--f-primary); font-weight: 700;
  font-size: .82rem; color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--f-secondary); font-weight: 300; font-size: .9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #d1d9e6;
  border-radius: 6px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,46,90,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Success / Error states */
.form-feedback {
  display: none;
  padding: 14px 18px; border-radius: 8px;
  font-family: var(--f-secondary); font-weight: 400; font-size: .9rem;
}
.form-feedback.success {
  display: block;
  background: #edfaf3; border: 1.5px solid #34c77b; color: #1a6e42;
}
.form-feedback.error {
  display: block;
  background: #fff0f0; border: 1.5px solid #e05c5c; color: #8b1a1a;
}

.btn-submit {
  font-family: var(--f-primary); font-weight: 700;
  background: var(--navy); color: var(--white);
  padding: 13px 28px; border-radius: 6px; font-size: .9rem;
  border: 2px solid var(--navy); cursor: pointer;
  transition: all .2s; align-self: flex-start; white-space: nowrap;
}
.btn-submit:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
