/* Terminstimme – Kretronik GmbH
   Self-contained stylesheet. No external fonts, CDNs or trackers (DSGVO). */

:root {
  --blue: #1e3c78;
  --blue-dark: #152a54;
  --blue-light: #dce4f2;
  --green: #008c50;
  --green-dark: #006b3d;
  --red: #c83232;
  --gray-bg: #f8f8f8;
  --text: #1a2233;
  --muted: #5a6577;
  --border: #e3e7ef;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 60, 120, 0.08);
  --shadow-lg: 0 18px 50px rgba(30, 60, 120, 0.14);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; color: var(--blue-dark); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 140, 80, 0.28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-light); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--blue-dark); letter-spacing: -0.01em; }
.brand-name span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(0, 140, 80, 0.10), transparent 60%),
    linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); }
.hero-note strong { color: var(--green-dark); }

/* Phone mock / call card */
.call-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  max-width: 380px;
  margin-left: auto;
}
.call-card .call-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.call-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 140, 80, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 140, 80, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(0, 140, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 140, 80, 0); }
}
.call-head .call-meta strong { display: block; font-size: 0.98rem; }
.call-head .call-meta span { font-size: 0.82rem; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.1rem; }
.bubble {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
}
.bubble.caller { align-self: flex-start; background: var(--gray-bg); border-bottom-left-radius: 4px; }
.bubble.bot { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.booked {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #eaf7f0;
  color: var(--green-dark);
  border: 1px solid #cdebdb;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trustbar ul {
  list-style: none;
  margin: 0;
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.trustbar li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--blue-dark); font-size: 0.98rem; }
.trustbar svg { color: var(--green); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--gray-bg); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); margin: 0; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature h3 { margin-bottom: 0.35rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Demo band ---------- */
.demo {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  text-align: center;
}
.demo h2 { color: #fff; }
.demo p { color: rgba(255, 255, 255, 0.85); max-width: 38rem; margin: 0 auto 2rem; }
.demo-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.01em;
}
.demo-phone:hover { background: rgba(255, 255, 255, 0.18); }
.demo-sub { margin-top: 1.2rem !important; font-size: 0.92rem; }

/* ---------- Privacy / security ---------- */
.privacy-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.privacy-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.privacy-list li { display: flex; gap: 0.8rem; margin-bottom: 1.1rem; }
.privacy-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.privacy-list strong { display: block; }
.privacy-list span { color: var(--muted); font-size: 0.96rem; }
.privacy-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  text-align: center;
}
.privacy-badge .shield {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  color: var(--green);
}
.privacy-badge h3 { margin-bottom: 0.3rem; }
.privacy-badge p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--blue-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 1.5rem 0;
}
.contact-methods a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.78); padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #6fcf9a; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.8rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: 2.1rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal p, .legal li { color: #2a3346; }
.legal a { word-break: break-word; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem; text-decoration: none; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .call-card { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 24px 1.2rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; width: 100%; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-toggle { display: block; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
