/* ==========================================================================
   arne-chudobba.de – Stylesheet
   Theming über CSS Custom Properties, Dark-/Light-Mode via data-theme
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --text: #1a2233;
  --text-muted: #5b6577;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --border: #e2e6ec;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 4px 8px rgba(16, 24, 40, 0.1), 0 16px 40px rgba(16, 24, 40, 0.12);
  --badge-bg: #fef3c7;
  --badge-text: #92400e;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f141c;
  --bg-elevated: #1a2230;
  --text: #e8ecf3;
  --text-muted: #98a3b5;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --border: #2a3446;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
  --badge-bg: #3b2f0e;
  --badge-text: #fbbf24;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c;
    --bg-elevated: #1a2230;
    --text: #e8ecf3;
    --text-muted: #98a3b5;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --border: #2a3446;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
    --badge-bg: #3b2f0e;
    --badge-text: #fbbf24;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.25s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: 5rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Sections ------------------------------------------------------------ */

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

/* --- App-Karten ----------------------------------------------------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.app-card .app-icon {
  font-size: 2rem;
  line-height: 1;
}

.app-card h3 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.app-card .app-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.app-card.coming-soon {
  opacity: 0.75;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- Kontakt --------------------------------------------------------------- */

.contact {
  text-align: center;
}

.contact p {
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 auto 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* --- Unterseiten (Impressum / Datenschutz) ---------------------------------- */

.legal-page {
  padding: 3rem 0;
  max-width: 720px;
}

.legal-page h1 {
  font-size: 1.9rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.placeholder {
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0 0.3rem;
  border-radius: 4px;
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* --- Responsive --------------------------------------------------------------- */

@media (max-width: 600px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .site-nav a:not(.theme-toggle) {
    display: none;
  }
}
