/* ==========================================================================
   Der Clevere Rentner — Design System
   ========================================================================== */

:root {
  --brand: #004d4e;
  --brand-dark: #013638;
  --brand-light: #0a6c6d;
  --brand-tint: #e6efee;
  --accent: #c8a15a;
  --bg: #ffffff;
  --bg-alt: #f4f6f5;
  --bg-soft: #eef3f2;
  --text: #1e2a28;
  --text-muted: #55625f;
  --border: #d5dddb;
  --white: #ffffff;

  --radius: 0;
  --radius-lg: 0;
  --shadow-sm: 0 1px 3px rgba(1, 54, 56, 0.05);
  --shadow-md: 0 4px 14px rgba(1, 54, 56, 0.08);

  --container: 900px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

/* --------------------------------------------------------------------------
   Header — logo only, no navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.site-header .logo {
  display: inline-flex;
}

.site-header .logo img {
  height: 45px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 32px 0 40px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 auto 22px;
  max-width: 900px;
}

.hero__figure {
  margin: 0 auto 26px;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 900px;
}

/* --------------------------------------------------------------------------
   Advantage blocks — heading -> image -> text -> CTA (strict vertical flow)
   -------------------------------------------------------------------------- */
.blocks {
  padding: 24px 0 40px;
}

/* Each block sits in its own thin-bordered card */
.block {
  text-align: center;
  padding: 34px 30px 38px;
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 26px;
}

.block:last-child {
  margin-bottom: 0;
}

/* Number moved into the heading, with a lighter background */
.block__num {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  margin-right: 12px;
  border-radius: var(--radius);
  vertical-align: middle;
}

.block__title {
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 22px;
  max-width: 100%;
  text-align: left;
}

.block__figure {
  margin: 0 auto 24px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.block__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.block__subtitle {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 100%;
  text-align: left;
}

.block__text {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 100%;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Buttons / CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  padding: 16px 30px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.btn:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--white);
}

.btn + .btn {
  margin-top: 12px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
  font-size: 15px;
}

.site-footer .logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer__top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer__disclaimer {
  flex: 1 1 60%;
  min-width: 0;
}

.footer__heading {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.footer__disclaimer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.footer__disclaimer p:last-child {
  margin-bottom: 0;
}

.footer__company {
  flex: 0 1 320px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.footer__company strong {
  color: var(--white);
  font-weight: 600;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.85);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Content pages (legal / contact)
   -------------------------------------------------------------------------- */
.page {
  padding: 56px 0 72px;
}

.page h1 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--brand-dark);
  margin: 0 0 8px;
}

.page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.page h2 {
  font-size: 21px;
  color: var(--brand-dark);
  margin: 36px 0 12px;
}

.page h3 {
  font-size: 18px;
  color: var(--text);
  margin: 24px 0 8px;
}

.page p,
.page li {
  color: var(--text-muted);
  font-size: 16px;
}

.page a {
  color: var(--brand-light);
  text-decoration: underline;
}

.page ul {
  padding-left: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--brand-light);
}

/* Contact form */
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 8px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(10, 108, 109, 0.15);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner .btn {
  font-size: 15px;
  padding: 11px 22px;
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .section,
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .block {
    padding: 32px 20px;
  }

  .btn {
    width: 100%;
    padding: 15px 22px;
  }

  .contact-card {
    padding: 22px;
  }

  .footer__top {
    flex-direction: column;
    gap: 28px;
  }

  .footer__disclaimer,
  .footer__company {
    flex: 0 0 auto;
    width: 100%;
  }
}
