/* ============================================================
   style.css – Sonnenstein GmbH | Globales Stylesheet
   ============================================================ */

/* ── RESET & VARIABLEN ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #4da6ff;
  --blue-dark:  #2980d9;
  --blue-light: #e6f2ff;
  --bg:         #ddeeff;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --muted:      #5a6a7a;
  --radius:     10px;
  --shadow:     0 2px 10px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --max-width:  960px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo a span { opacity: 0.75; font-weight: 400; }

.main-nav { display: flex; gap: 24px; }
.main-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 56px 24px 48px;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 10px; }
.hero p  { font-size: 1rem; opacity: 0.9; }

/* ── MAIN CONTENT ── */
main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 20px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(77,166,255,0.18);
}

.card h2 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 10px;
}

/* ── FORMULARE ── */
.card form { display: flex; flex-direction: column; gap: 10px; }

.card input,
.card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8ddf0;
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #f7fbff;
  transition: border-color var(--transition);
}
.card input:focus,
.card select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.card input::placeholder { color: #9ab4cc; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover {
  background: var(--blue-dark);
  transform: scale(1.02);
}

/* ── FLASH MESSAGES ── */
.flash {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.flash-ok  { background: #d4edda; color: #155724; border: 1px solid #b3d7be; }
.flash-err { background: #f8d7da; color: #721c24; border: 1px solid #f1b0b7; }

/* ── STATIC PAGES (Impressum, Datenschutz) ── */
.static-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  max-width: 760px;
  margin: 32px auto;
}
.static-page h1 { font-size: 1.6rem; color: var(--blue-dark); margin-bottom: 24px; }
.static-page h2 { font-size: 1.1rem; color: var(--blue-dark); margin: 24px 0 8px; }
.static-page p, .static-page li { font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.static-page ul { padding-left: 20px; margin-top: 6px; }
.static-page a  { color: var(--blue); text-decoration: none; }
.static-page a:hover { text-decoration: underline; }

/* ── SUCCESS PAGE ── */
.success-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 60px 40px;
  max-width: 520px;
  margin: 60px auto;
}
.success-box .icon { font-size: 3rem; margin-bottom: 16px; }
.success-box h1 { font-size: 1.6rem; color: #155724; margin-bottom: 12px; }
.success-box p  { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* ── FOOTER ── */
.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,0.7);
  padding: 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; }
.footer-nav  { display: flex; gap: 20px; }
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .header-inner  { height: auto; flex-direction: column; padding: 14px 0; gap: 10px; }
  .cards-grid    { grid-template-columns: 1fr; }
  .static-page   { padding: 24px 20px; margin: 16px; }
  .footer-inner  { flex-direction: column; text-align: center; }
}
