@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:wght@400;600&display=swap');

/* HINWEIS: Für lokales Hosting die Zeile oben ersetzen durch:
   @font-face { font-family: 'Nunito'; src: url('fonts/Nunito.woff2') format('woff2'); }
   @font-face { font-family: 'Nunito Sans'; src: url('fonts/NunitoSans.woff2') format('woff2'); }
   Dann entfällt der Google-Fonts-Abschnitt in der Datenschutzerklärung komplett. */

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

html, body { overflow-x: hidden; }

:root {
  --purple:    #2B7BB9;
  --purple-d:  #1A5F94;
  --purple-l:  #E6F2FB;
  --yellow:    #F5C842;
  --yellow-d:  #D4A820;
  --coral:     #E84040;
  --teal:      #27AE8F;
  --blue:      #4A90D9;
  --pink:      #E87D27;
  --dark:      #1A2332;
  --gray:      #5A6475;
  --gray-l:    #F4F7FA;
  --white:     #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow:    0 4px 24px rgba(91,63,228,0.10);
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --nav-h:     80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--purple-l);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 max(5%, calc((100% - 1100px) / 2));
  gap: 32px;
  box-shadow: 0 2px 12px rgba(43,123,185,0.08);
}
@media (max-width: 1180px) {
  .nav { padding: 0 5%; }
}
.nav-logo {
  margin-right: auto;
  display: flex; align-items: center;
}
.nav-logo img {
  height: 80px;
  width: auto;
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav-links a {
  color: var(--gray);
  font-size: 13px; font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--purple-l);
  color: var(--purple);
}
.nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 800 !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-xl) !important;
  font-size: 14px !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,200,66,0.5) !important;
  background: var(--yellow) !important;
}
.nav-burger { display: none; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); margin: 5px 0;
  border-radius: 2px; transition: all 0.3s;
}

/* ── SCHOOL PAPER BACKGROUND ── */
.paper-bg {
  position: relative;
  overflow: hidden;
}
.paper-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* Karopapier */
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    /* Liniertes Papier */
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    /* Rote Randlinie */
    linear-gradient(90deg, transparent 13%, rgba(232,64,64,0.22) 13%, rgba(232,64,64,0.22) calc(13% + 1.5px), transparent calc(13% + 1.5px)),
    /* Notenpapier (5er-Gruppen) */
    linear-gradient(rgba(255,210,66,0.07) 1px, transparent 1px);
  background-size:
    24px 24px,
    24px 24px,
    100% 28px,
    100% 100%,
    100% 140px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 20px;
}
.paper-bg > * { position: relative; z-index: 1; }


.hero {
  background: var(--purple);
  padding: 80px max(5%, calc((100% - 1100px) / 2)) 60px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
@media (max-width: 1180px) {
  .hero { padding: 80px 5% 60px; }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-xl);
  cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(255,210,63,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255,210,63,0.55); }
.btn-outline {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.22); }
.btn-purple {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(91,63,228,0.3);
}
.btn-purple:hover { box-shadow: 0 6px 28px rgba(91,63,228,0.45); }

/* hero dashboard preview */
.hero-preview {
  display: flex; gap: 12px;
  justify-content: center;
  padding: 0 5%;
  max-width: 760px; margin: 0 auto;
}
.preview-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  flex: 1; min-width: 140px;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.preview-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block; margin-bottom: 10px;
}
.preview-card .label {
  font-size: 11px; color: var(--gray);
  margin-bottom: 4px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.preview-card .val {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  color: var(--dark);
}
.hero-wave {
  display: block; width: 100%;
  margin-top: 48px;
}

/* ── SECTIONS ── */
section { padding: 80px max(5%, calc((100% - 1100px) / 2)); }
@media (max-width: 1180px) { section { padding: 80px 5%; } }
@media (max-width: 600px) { section { padding: 48px 6%; } }

.section-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.6;
}
.centered { text-align: center; }
.centered .section-sub { margin: 0 auto; }

/* ── FEATURE GRID ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.feat-card {
  background: var(--white);
  border: 1.5px solid #EEE8FF;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feat-card h3 {
  font-size: 17px; font-weight: 800;
  margin-bottom: 8px; color: var(--dark);
}
.feat-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.ic-purple { background: #E6F2FB; color: var(--purple); }
.ic-coral   { background: #FDEAEA; color: var(--coral); }
.ic-teal    { background: #E0F7F2; color: var(--teal); }
.ic-amber   { background: #FEF8E3; color: #B08A00; }
.ic-blue    { background: #EAF3FC; color: var(--blue); }
.ic-pink    { background: #FEF0E6; color: var(--pink); }

/* ── TWO-COL SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  overflow: hidden;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; margin-bottom: 16px;
}
.split-text p { color: var(--gray); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-l);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; display: block; }

/* ── PRICING ── */
.price-card {
  background: var(--white);
  border: 2px solid var(--purple);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px; margin: 48px auto 0;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-badge {
  display: inline-block;
  background: var(--purple-l);
  color: var(--purple);
  font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: var(--radius-xl);
  margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 30px; font-weight: 900;
  color: var(--dark); margin-bottom: 4px;
}
.price-amount span { font-size: 18px; color: var(--gray); font-weight: 400; }
.price-note { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.price-features {
  list-style: none;
  text-align: left; margin-bottom: 32px;
}
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; padding: 10px 0;
  border-bottom: 1px solid #F0EBF8;
  color: var(--dark);
}
.price-features li:last-child { border-bottom: none; }
.price-features li .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; font-weight: 700;
}

/* ── CHECKLIST ── */
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 16px; color: var(--dark);
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--purple-l);
  color: var(--purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}

/* ── APP DETAIL (apps page) ── */
.app-section {
  padding: 60px max(5%, calc((100% - 1100px) / 2));
  border-bottom: 1px solid #F0EBF8;
}
@media (max-width: 1180px) {
  .app-section { padding: 60px 5%; }
}
.app-section:last-of-type { border-bottom: none; }
.app-num {
  font-family: var(--font-head);
  font-size: 72px; font-weight: 900;
  color: #F0EBF8; line-height: 1;
  margin-bottom: -16px;
}
.app-section h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800; margin-bottom: 12px;
}
.app-section p { color: var(--gray); font-size: 16px; max-width: 620px; }

/* ── VORLAGEN GRID ── */
.vorlagen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 32px;
}
.vorlage-card {
  border: 1.5px solid #EEE8FF;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.vorlage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--purple);
}
.vorlage-card .v-icon {
  font-size: 28px; margin-bottom: 12px;
}
.vorlage-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.vorlage-card p { font-size: 13px; color: var(--gray); line-height: 1.5; flex-grow: 1; }
.vorlage-card a {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 700;
  color: var(--purple);
}
.vorlage-card a:hover { text-decoration: underline; }

/* ── WEB-TIPPS ── */
.webtipp-cat { margin-bottom: 56px; }
.webtipp-cat h2 {
  font-size: 22px; font-weight: 800;
  margin-bottom: 8px; color: var(--dark);
}
.webtipp-cat .cat-intro {
  color: var(--gray); font-size: 15px; margin-bottom: 20px;
}
.webtipp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.webtipp-item {
  border: 1.5px solid #EEE8FF;
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.webtipp-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-left-color: var(--yellow);
}
.webtipp-item a {
  font-weight: 700;
  color: var(--purple);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.webtipp-item a::after {
  content: '↗';
  font-size: 12px;
  opacity: 0.6;
}
.webtipp-item a:hover { text-decoration: underline; }
.webtipp-item p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── ELTERN BOXES ── */
.eltern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.eltern-card {
  background: var(--gray-l);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.eltern-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.eltern-card p { font-size: 15px; color: var(--gray); }

/* ── CONTENT PAGE (impressum/datenschutz) ── */
.content-page { max-width: 720px; margin: 0 auto; padding: 60px 5%; }
.content-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 28px; }
.content-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.content-page p { color: var(--gray); font-size: 15px; margin-bottom: 14px; line-height: 1.8; }
.content-page a { color: var(--purple); text-decoration: underline; }

/* ── HIGHLIGHT BAND ── */
.band {
  background: var(--purple);
  padding: 64px max(5%, calc((100% - 1100px) / 2));
  text-align: center;
}
@media (max-width: 1180px) {
  .band { padding: 64px 5%; }
}
.band h2 { color: var(--white); font-size: clamp(22px,3.5vw,36px); font-weight: 800; margin-bottom: 12px; }
.band p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 28px; }

/* ── SOCIAL ── */
.social-row {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
.social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-weight: 700; font-size: 14px;
  transition: transform 0.15s;
  border: 2px solid transparent;
}
.social-btn:hover { transform: translateY(-2px); }
.social-fb { background: #E8F0FB; color: #2D4AA0; border-color: #C5D6F5; }
.social-tw { background: #E6F7FE; color: #1A8FC7; border-color: #B5E3F8; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 32px max(5%, calc((100% - 1100px) / 2));
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
@media (max-width: 1180px) {
  footer { padding: 32px 5%; }
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 900;
  color: var(--white);
}
.footer-logo span { color: var(--yellow); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ── BG VARIANTS ── */
.bg-light { background: var(--gray-l); }
.bg-purple { background: var(--purple); color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); padding: 16px 5% 24px;
    border-bottom: 2px solid var(--purple-l);
    gap: 4px;
  }
  .hero { padding: 56px 5% 0; }
  .hero-preview { flex-direction: column; align-items: center; }
  .preview-card { min-width: 200px; max-width: 280px; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
  section { padding: 56px 5%; }
  .price-card { padding: 28px 20px; }
}
