/* ═══════════════════════════════════════════
   BREAKPOINTS (used in comments below)
   xs  < 480px   small phones
   sm  480–767px large phones
   md  768–1023px tablets
   lg  1024px+   laptops & desktops
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:      #1e1e1e;
  --dark2:     #2B2B2B;
  --mid:       #555;
  --subtle:    #888;
  --rule:      #e5e5e5;
  --offwhite:  #F7F7F7;
  --white:     #FFFFFF;
  --accent:    #2B5F8E;
  --accent-h:  #1f4a70;
  --accent-bg: #eef4fb;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  /* Fluid section padding — scales from 2.5rem (phone) to 5.5rem (desktop) */
  --section-py: clamp(2.5rem, 7vw, 5.5rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; }

/* Skip-link: hidden until focused by keyboard – accessibility + ranking signal */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  /* fluid horizontal padding: 1rem on xs, 1.5rem on sm, 2rem on lg */
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
p { color: var(--mid); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-header p {
  margin-top: 0.65rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--subtle);
}
.section-header.left { text-align: left; margin: 0 0 1.5rem; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

.full-width { width: 100%; display: flex; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.logo { height: 38px; width: auto; }

#mainNav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

#mainNav a {
  color: var(--mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
#mainNav a:hover { color: var(--dark); background: var(--offwhite); }

#mainNav .nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 0.5rem;
  padding: 0.45rem 1rem;
}
#mainNav .nav-cta:hover { background: var(--accent-h); color: #fff; }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* md and below → hamburger */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  #mainNav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  #mainNav.open { max-height: 340px; }

  #mainNav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.75rem clamp(1rem, 4vw, 2rem) 1.25rem;
    align-items: flex-start;
  }

  #mainNav li { width: 100%; }
  #mainNav a { font-size: 1rem; padding: 0.65rem 0.75rem; width: 100%; display: block; }
  #mainNav .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; display: block; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  background: var(--dark2);
  background-image: linear-gradient(135deg, #1e1e1e 0%, #2B2B2B 60%, #323232 100%);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(43,95,142,0.18) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-label {
  display: inline-block;
  background: rgba(43,95,142,0.25);
  color: rgba(255,255,255,0.7);
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(43,95,142,0.35);
}

#hero h1 {
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.82rem, 2vw, 0.88rem);
  font-weight: 500;
  min-width: 0;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* xs — stack hero buttons */
@media (max-width: 479px) {
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
}

/* ═══════════════════════════════════════════
   PROBLEM
═══════════════════════════════════════════ */
#problem {
  background: var(--offwhite);
  padding: var(--section-py) 0;
}

/* lg: 3 cols | md: 2 cols | xs/sm: 1 col */
.cards-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card-icon {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-icon:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.icon-wrap {
  width: 52px; height: 52px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon h3 { margin-bottom: 0.4rem; }
.card-icon p  { font-size: 0.93rem; color: var(--subtle); }

/* Force 1-col on xs */
@media (max-width: 479px) {
  .card-icon { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════
   USP GRID
═══════════════════════════════════════════ */
#leistungen {
  background: var(--white);
  padding: var(--section-py) 0;
}

/* lg: 2 cols | sm/xs: 1 col */
.usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.usp-item {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--offwhite);
  transition: box-shadow 0.2s;
}
.usp-item:hover { box-shadow: var(--shadow-sm); }

.usp-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.usp-item div { min-width: 0; }
.usp-item h3 { margin-bottom: 0.2rem; }
.usp-item p  { font-size: 0.92rem; color: var(--subtle); }

/* xs: full width */
@media (max-width: 479px) {
  .usp-item { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════
   PAKETE
═══════════════════════════════════════════ */
#pakete {
  background: var(--offwhite);
  padding: var(--section-py) 0;
}

/* lg: 4 cols | md: 2 cols | xs: 1 col */
.packages {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.package {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.package:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.package-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 6px 28px rgba(43,95,142,0.15);
  padding-top: 3rem;
}
.package-featured:hover { box-shadow: 0 10px 36px rgba(43,95,142,0.2); }

.pkg-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}

.pkg-top h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.pkg-desc {
  font-size: 0.85rem;
  color: var(--subtle);
  margin-bottom: 0.75rem;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.pkg-amount {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.pkg-unit { font-size: 0.85rem; color: var(--subtle); }

.pkg-list { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.pkg-list li {
  font-size: 0.88rem;
  color: var(--mid);
  padding-left: 1.4rem;
  position: relative;
}
.pkg-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.pkg-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--mid);
}
.pkg-note svg { color: var(--accent); flex-shrink: 0; }
.pkg-note strong { color: var(--dark); }

/* md: 2-col packages */
@media (max-width: 767px) {
  .package { flex: 1 1 calc(50% - 0.625rem); }
}
/* xs: 1-col packages */
@media (max-width: 479px) {
  .package { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════
   ÜBER MICH
═══════════════════════════════════════════ */
#ueber-mich {
  background: var(--white);
  padding: var(--section-py) 0;
}

.about-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-photo {
  flex-shrink: 0;
  width: clamp(100px, 14vw, 160px);
  height: clamp(100px, 14vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.about-content {
  flex: 1 1 280px;
  min-width: 0;
}

.about-content p {
  font-size: clamp(0.93rem, 2vw, 1rem);
  color: var(--mid);
  margin-bottom: 0.85rem;
}

/* xs: center photo */
@media (max-width: 479px) {
  .about-inner { flex-direction: column; align-items: center; text-align: center; }
  .section-header.left { text-align: center; }
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
#faq {
  background: var(--offwhite);
  padding: var(--section-py) 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  font-weight: 600;
  color: var(--dark);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 1.25rem;
}
.faq-answer p { font-size: 0.93rem; color: var(--subtle); }

/* ═══════════════════════════════════════════
   KONTAKT
═══════════════════════════════════════════ */
#kontakt {
  background: var(--dark2);
  padding: var(--section-py) 0;
}

#kontakt h2 { color: #fff; margin-bottom: 0.75rem; }

.contact-left > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: clamp(0.93rem, 2vw, 1rem);
}

/* lg: side-by-side | md/sm/xs: stacked */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.contact-left {
  flex: 1 1 280px;
  min-width: 0;
}

.contact-right {
  flex: 1.4 1 320px;
  min-width: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: background 0.2s;
  min-width: 0;
}
.contact-detail-item:hover { background: rgba(255,255,255,0.1); }

.contact-detail-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-detail-value {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-all;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: var(--dark);
  background: var(--offwhite);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,95,142,0.12);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }

.form-note {
  font-size: 0.8rem;
  color: var(--subtle);
  text-align: center;
  margin-top: -0.25rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
}

/* lg: 3 cols | sm/xs: stacked */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  flex: 2 1 260px;
  min-width: 0;
}
.footer-brand .logo-footer { height: 36px; margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.4); }

.footer-nav-col {
  flex: 1 1 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.25rem;
}
.footer-nav-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: #fff; }

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.83rem;
  text-align: center;
  color: rgba(255,255,255,0.25);
}
