/*
Theme Name: 100 Punkte
Theme URI: https://100punkte.app/
Author: 100 Punkte
Author URI: https://100punkte.app/
Description: Landing- und Content-Theme im Design der Lernplattform 100 Punkte. Schlicht, schnell, responsiv. Übersetzungsbereit (Text Domain: hundertpunkte) und mehrsprachig via Polylang/WPML nutzbar.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hundertpunkte
*/

:root {
  --bg: #f8fafc; --card: #ffffff; --accent: #4f46e5; --accent-light: #eef2ff;
  --text: #1e293b; --muted: #64748b; --border: #e2e8f0; --green: #10b981;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column; line-height: 1.6;
}
a { color: var(--accent); }

/* Header */
.site-header {
  padding: 1.1rem 2rem; display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--border); background: var(--card);
}
.site-logo {
  width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-weight: 800; letter-spacing: -1px; flex-shrink: 0;
}
.site-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.site-brand b { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 1.5rem 5rem; text-align: center; }
.hero .badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-light);
  color: var(--accent); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1.75rem; }
.hero .badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
  max-width: 720px; margin: 0 0 1.25rem; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0 0 3rem; }
.features { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3.5rem; max-width: 720px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 1.1rem; font-size: 0.9rem; color: var(--muted); }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }

/* Content pages (Impressum, Datenschutz, Blog) */
.page-wrap { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page-wrap h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.page-wrap h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.page-wrap p, .page-wrap li { color: var(--text); }
.page-wrap a { color: var(--accent); }
.entry-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Footer */
.site-footer { padding: 2rem; text-align: center; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   Basis ist die Desktop-Darstellung oben; hier wird für schmale Viewports
   angepasst. Reihenfolge: Tablet (≤900px) → Handy (≤600px) → sehr schmal (≤380px).
   ───────────────────────────────────────────────────────────────────────────── */

/* Tablet und kleiner */
@media (max-width: 900px) {
  .site-header { padding: 1rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .hero .subtitle { margin-bottom: 2.25rem; }
  .features { margin-bottom: 2.5rem; }
  .page-wrap { padding: 2.5rem 1.25rem 3rem; }
}

/* Handy */
@media (max-width: 600px) {
  .site-header {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }
  /* Navigation rutscht unter das Logo und verteilt sich über die volle Breite */
  .site-nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
  }
  .site-nav a { font-size: 0.88rem; }

  .hero { padding: 2.25rem 1rem 3rem; }
  .hero .badge { margin-bottom: 1.25rem; }
  .hero .subtitle { margin-bottom: 1.75rem; }

  /* Feature-Pillen füllen die Zeile statt zu zerfransen */
  .features { gap: 0.5rem; margin-bottom: 2rem; }
  .feature { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

  /* Aktionen untereinander und über die volle Breite — sicher zu treffen */
  .cta-group { flex-direction: column; width: 100%; max-width: 320px; gap: 0.65rem; }
  .btn { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; }
  /* Auf Touch bringt der Hover-Versatz nichts und wirkt wie ein Wackler */
  .btn:hover { transform: none; }

  .page-wrap { padding: 2rem 1rem 2.5rem; }
  .page-wrap h1 { font-size: 1.6rem; }
  .page-wrap h2 { font-size: 1.15rem; }

  /* Footer-Links umbrechen lassen statt abschneiden */
  .site-footer { padding: 1.5rem 1rem; }
  .site-footer .sep { margin: 0 0.35rem; }
}

/* Sehr schmale Geräte */
@media (max-width: 380px) {
  .site-brand { font-size: 1rem; }
  .site-logo { width: 32px; height: 32px; }
  .hero .badge { font-size: 0.75rem; }
  .feature { font-size: 0.8rem; }
}

/* Zeigegeräte ohne Hover (Touch): Hover-Effekte deaktivieren */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
}
