/* =============================================
   TerminTap – style.css
   ============================================= */

/* --- Lokale Fonts --- */
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* --- Variablen --- */
:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --navy:       #0f1f3d;
  --white:      #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid:   #e2e8f0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --radius:     0.75rem;
  --shadow:     0 4px 24px rgba(15, 31, 61, 0.08);
}

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
header {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

header p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 2rem;
}

header img.logo {
  width: 140px;
  margin: 0 auto;
}

/* --- Sticky CTA --- */
.sticky-cta {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  text-decoration: none;
}

/* --- Main & Sektionen --- */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1.25rem;
  color: var(--navy);
}

section p, section li {
  color: var(--text);
  max-width: 640px;
}

/* --- Karten-Sektionen --- */
section.card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* --- Listen --- */
ol, ul {
  padding-left: 1.5rem;
}

ol li, ul li {
  margin-bottom: 0.6rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* --- Schritt-Blöcke --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.step-text h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

/* --- Bilder in Sektionen --- */
.section-img {
  margin: 2rem auto 0;
  max-width: 160px;
}

.section-img-wide {
  margin: 2rem auto 0;
  max-width: 320px;
  border-radius: var(--radius);
}

/* --- Kontaktformular --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 0.5rem;
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privacy-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

#form-status {
  font-size: 0.95rem;
  padding: 0.6rem 0;
  min-height: 1.5rem;
}

#form-status.success { color: #16a34a; }
#form-status.error   { color: #dc2626; }

/* --- Cookie-Badge & Modal --- */
#cookie-badge {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--blue);
  color: white;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  z-index: 200;
  font-size: 1.1rem;
  transition: transform 0.15s;
}
#cookie-badge:hover { transform: scale(1.1); }

#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 61, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}
#cookie-modal.open { display: flex; }

.modal-box {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}

footer a {
  color: rgba(255,255,255,0.85);
  margin: 0 0.5rem;
}
footer a:hover { color: white; }

footer .footer-copy { margin-bottom: 0.4rem; }
footer .footer-note { margin-top: 0.75rem; font-style: italic; opacity: 0.55; }

/* --- Rechtliche Seiten (Impressum, Datenschutz) --- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.5rem;
  color: var(--navy);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--navy);
}

.legal-content h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  header { padding: 3.5rem 1rem 2.5rem; }
  section.card { padding: 1.75rem 1.25rem; }
  .step { flex-direction: column; gap: 0.6rem; }
}
