/* shared.css — ICH DOCH NICHT! Design-System
   Used by all main pages. Tool-Worksheets keep inline CSS (PDF pipeline). */

:root {
  --bg: #faf7f2;
  --bg-warm: #f3ede4;
  --text: #2d2a26;
  --text-soft: #7a746b;
  --accent: #d4845a;
  --accent-soft: rgba(212,132,90,0.12);
  --accent-dark: #b8693f;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.06);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- NAV MINIMAL --- */
.nav {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-back {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--accent); }

/* --- DIVIDER --- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: 0 auto;
  border-radius: 2px;
  opacity: 0.4;
}

/* --- FOOTER --- */
.footer { text-align: center; padding: 3rem 2rem; }
.footer-links { margin-bottom: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--text); transition: all 0.3s; text-decoration: none; }
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { margin-top: 1.5rem; font-size: 0.75rem; }
.footer-legal a { color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }
.footer-legal a + a { margin-left: 1.5rem; }

/* --- SCROLL TO TOP --- */
.scroll-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 2px 12px rgba(212,132,90,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  font-family: 'Nunito', sans-serif;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }
.scroll-to-top svg { width: 24px; height: 24px; }

/* --- ACCESSIBILITY --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
