/*
Theme Name: erechnung-guide-child
Theme URI: https://erechnung-guide.de
Description: Child theme for erechnung-guide.de
Author: Laurits Holm Hoppe
Template: generatepress
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=Sora:wght@300;400;500;600&display=swap');

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --navy:       #1a3a5c;
  --navy-light: #2a5080;
  --green:      #2e7d52;
  --green-light:#3a9e68;
  --green-pale: #eaf4ee;
  --white:      #ffffff;
  --grey-bg:    #f4f6f9;
  --grey-line:  #dde3eb;
  --grey-text:  #6b7a8d;
  --dark:       #0f1f30;

  --font-head: 'DM Sans', sans-serif;
  --font-body: 'Sora', sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(26,58,92,0.10);
  --shadow-lg:  0 8px 32px rgba(26,58,92,0.14);
}

/* ─── Base reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

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

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(26,58,92,0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--green); }

.site-nav a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-text);
  margin-left: 28px;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--navy); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: var(--grey-bg);
  color: var(--navy);
}

.btn--lg {
  font-size: 1.05rem;
  padding: 15px 30px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a45 100%);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(46,125,82,0.12);
  pointer-events: none;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(46,125,82,0.15);
  border: 1px solid rgba(46,125,82,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  max-width: 680px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__trust {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__trust-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__trust-item::before {
  content: '✓';
  color: var(--green-light);
  font-weight: 700;
}

/* ─── Countdown ─────────────────────────────────────────────── */
.countdown-bar {
  background: var(--green-pale);
  border-bottom: 1px solid rgba(46,125,82,0.2);
  padding: 10px 0;
  text-align: center;
}

.countdown-bar__inner {
  font-family: var(--font-head);
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-bar__timer {
  font-weight: 700;
  color: var(--navy);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ─── Software comparison table ─────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
}

.compare-table th.highlight {
  background: var(--green);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-line);
  vertical-align: middle;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--grey-bg); }

.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .cross { color: #c0392b; }

.compare-table .recommended {
  background: var(--green-pale) !important;
  font-weight: 500;
}

/* ─── CTA strip ─────────────────────────────────────────────── */
.cta-strip {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-strip p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-strip .btn { margin: 0 8px; }

/* ─── Validator widget ───────────────────────────────────────── */
.validator-box {
  background: var(--white);
  border: 2px dashed var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: border-color 0.2s;
}

.validator-box:hover { border-color: var(--green); }

.validator-box h3 {
  margin-bottom: 8px;
}

.validator-box p {
  color: var(--grey-text);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.validator-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.validator-result.valid {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid rgba(46,125,82,0.3);
  display: block;
}

.validator-result.invalid {
  background: #fef0ee;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,0.2);
  display: block;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0 24px;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* ─── Section headings ──────────────────────────────────────── */
.section-head {
  margin-bottom: 48px;
}

.section-head__label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--grey-text);
  font-size: 1rem;
  max-width: 560px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__trust { gap: 16px; }
  .section { padding: 48px 0; }
  .site-nav { display: none; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; }
  .compare-table { font-size: 0.82rem; }
  .compare-table td, .compare-table th { padding: 10px 12px; }
}
