/* benhawks.com — Online-Lernplattform für digitale Kompetenzen */
:root {
  --primary: #004D40;
  --secondary: #00796B;
  --accent: #26A69A;
  --tint: #80CBC4;
  --light: #E0F2F1;
  --ink: #0f2624;
  --ink-soft: #355450;
  --paper: #ffffff;
  --paper-warm: #fbfdfc;
  --paper-tint: #f1f8f7;
  --border: #d6e6e3;
  --shadow: 0 8px 24px rgba(0, 77, 64, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 77, 64, 0.14);
  --radius: 8px;
  --radius-lg: 18px;
  --container: 1180px;
  --transition: 220ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Work Sans", sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--paper-tint); }
.section--dark { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--light); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #ffffff; }
.section--warm { background: var(--paper-warm); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.8em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 77, 64, 0.25);
}
.btn--primary:hover { transform: scale(1.02); color: #fff; box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: #fff; transform: scale(1.02); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
nav.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
nav.main-nav .nav-group {
  position: relative;
}
nav.main-nav > a, nav.main-nav .nav-trigger {
  padding: 0.55em 0.9em;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.96rem;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
nav.main-nav > a:hover, nav.main-nav .nav-trigger:hover { background: var(--light); color: var(--primary); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 60;
}
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.55em 0.8em;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
}
.dropdown a:hover { background: var(--light); color: var(--primary); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 0.5em 0.8em;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  nav.main-nav.is-open { display: flex; }
  nav.main-nav .nav-group { width: 100%; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; display: block; }
}

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-split .hero-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-full {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  overflow: hidden;
}
.hero-full h1, .hero-full h2 { color: #fff; }
.hero-full .lead { color: rgba(255,255,255,0.86); }
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
}
.hero-banner {
  background: var(--paper-tint);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}
.hero-banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-media img { height: 320px; }
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb span[aria-current] { color: var(--primary); font-weight: 500; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--tint { background: var(--paper-tint); }
.card--glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-left: 4px solid var(--accent);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.2rem;
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.86);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid a { color: rgba(255,255,255,0.78); display: block; padding: 0.2em 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--tint); }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.66);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 80;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.93rem; flex: 1 1 240px; }
.cookie-banner .btn { padding: 0.6em 1.1em; font-size: 0.92rem; }

/* Forms */
form.form { display: grid; gap: 1rem; max-width: 640px; }
.form-row { display: grid; gap: 0.4rem; }
label { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 0.8em 0.95em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(38,166,154,0.18);
}
textarea { min-height: 140px; resize: vertical; }
.field-error { color: #b3261e; font-size: 0.86rem; min-height: 1.2em; }
.form-success {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  display: none;
  color: var(--primary);
  font-weight: 500;
}
.form-success.is-visible { display: block; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 0.95em 1.1em; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
th { background: var(--light); color: var(--primary); font-family: "Space Grotesk", sans-serif; font-weight: 600; }
tr:last-child td { border-bottom: none; }
@media (max-width: 720px) {
  table { font-size: 0.86rem; }
  th, td { padding: 0.7em 0.7em; }
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
}
.faq-q .chev { transition: transform var(--transition); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  color: var(--ink-soft);
}
.faq-item.is-open .faq-a { max-height: 600px; padding-bottom: 1.1rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; }
.tab-btn {
  background: transparent;
  border: none;
  padding: 0.8em 1.2em;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  font-weight: 500;
}
.tab-btn.is-active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: var(--light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: "Space Grotesk", sans-serif;
}
.badge--outline { background: transparent; border: 1px solid var(--tint); }

/* Masonry-ish gallery */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}
.masonry img { width: 100%; margin-bottom: 1rem; border-radius: var(--radius); break-inside: avoid; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 540px) { .masonry { column-count: 1; } }

/* Logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; align-items: center; }
.logo-strip svg { width: 100%; height: 48px; opacity: 0.7; transition: opacity var(--transition); }
.logo-strip svg:hover { opacity: 1; }
@media (max-width: 760px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* Calendar */
.calendar { display: grid; gap: 0.8rem; }
.cal-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cal-date { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--primary); text-align: center; }
.cal-date strong { display: block; font-size: 1.6rem; line-height: 1; }
.cal-date span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
@media (max-width: 600px) { .cal-row { grid-template-columns: 70px 1fr; } .cal-row .cal-cta { grid-column: 1 / -1; } }

/* Live chat mockup */
.chat-mockup {
  position: fixed;
  right: 1.2rem;
  bottom: 5rem;
  width: 280px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.88rem;
  z-index: 30;
  display: none;
}
.chat-mockup.is-visible { display: block; }
.chat-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 0.8rem 1rem; font-family: "Space Grotesk", sans-serif; }
.chat-body { padding: 0.9rem; display: grid; gap: 0.55rem; }
.chat-bubble { background: var(--light); padding: 0.55em 0.8em; border-radius: 12px; max-width: 85%; }
.chat-bubble.me { background: var(--primary); color: #fff; margin-left: auto; }
.chat-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 31;
  box-shadow: var(--shadow-lg);
}

/* Before/After */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-box { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-left: 4px solid var(--primary); box-shadow: var(--shadow); }
.ba-box.before { border-left-color: var(--ink-soft); background: var(--paper-tint); }
.ba-box h3 { color: var(--primary); }
@media (max-width: 700px) { .before-after { grid-template-columns: 1fr; } }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; position: relative; }
.journey-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.journey-step .step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

/* Chart placeholder */
.chart-card {
  background: #fff;
  padding: 1.6rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}
.bar { display: grid; grid-template-columns: 140px 1fr 50px; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.bar-track { background: var(--light); height: 14px; border-radius: 999px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--secondary), var(--accent)); height: 100%; border-radius: 999px; }

/* Article body */
.article-body { max-width: 720px; margin-inline: auto; }
.article-body p { font-size: 1.07rem; line-height: 1.75; color: var(--ink); }
.article-body h2 { margin-top: 2.4rem; }
.article-body h3 { margin-top: 1.8rem; color: var(--secondary); }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.4em 1.2em;
  background: var(--paper-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--ink-soft);
}
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.share-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 2rem 0; }
.share-btn { background: var(--light); color: var(--primary); padding: 0.5em 1em; border-radius: 6px; font-weight: 500; font-size: 0.9rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.sidebar-card { background: var(--paper-tint); border-radius: var(--radius); padding: 1.4rem; border-left: 4px solid var(--accent); margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { padding: 0.5em 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.sidebar-card li:last-child { border-bottom: none; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem;
}
.newsletter-box h2 { color: #fff; }
.newsletter-box .lead { color: rgba(255,255,255,0.85); }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; max-width: 560px; }
.newsletter-form input { flex: 1 1 240px; }

/* Map */
.map-embed { width: 100%; height: 380px; border: none; border-radius: var(--radius); }

/* Animated text */
.animated-heading {
  background: linear-gradient(120deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.flex { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
}
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title p { color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }
