/* ===========================================================
   Autoknigge — Stilvoll, sicher & clever mobil
   Design-Idee: Klassische Eleganz trifft Moderne.
   Elegante Farbwelten (Racing Green, Champagner, Anthrazit)
   sorgen für einen vertrauenswürdigen, stilvollen Look.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --knigge-green: #1b362c;
  --knigge-green-light: #284e40;
  --knigge-gold: #c5a880;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--knigge-green);
  margin: 0 0 0.5em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

a { 
  color: var(--knigge-green-light); 
  text-decoration: none; 
  transition: color 0.2s ease;
}
a:hover { color: var(--knigge-gold); text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--knigge-gold);
  outline-offset: 2px;
}

img { max-width: 100%; }

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
header.site-header {
  background: var(--knigge-green);
  border-bottom: 3px solid var(--knigge-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  padding: 0.5rem 1.5rem;
}

.header-logo-mini {
  height: 60px;
  width: auto;
  display: block;
  opacity: 0.95;
  order: 2;
  transition: height 0.25s ease;
}
.header-logo-large .header-logo-mini {
  height: 100px;
}
.site-header.is-scrolled .header-logo-mini {
  height: 36px;
}
.site-header.is-scrolled.header-logo-large .header-logo-mini {
  height: 44px;
}

nav.main-nav {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.header-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.3rem;
}
.header-nav-list a {
  display: inline-block;
  color: #e9ecef;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: font-size 0.25s ease, color 0.25s ease;
}
.site-header.is-scrolled .header-nav-list a {
  font-size: 0.78rem;
}
.header-nav-list a:hover,
.header-nav-list a[aria-current="page"] {
  color: var(--knigge-gold);
  text-decoration: none;
}

/* --- Hero Sektion: Text links, Logo rechts & durchscheinend --- */
.hero {
  padding: 4rem 0 3.5rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.hero-content {
  text-align: left;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  max-width: 20ch;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}

.hero-logo-container {
  position: relative;
  width: 100%;
  max-width: 240px;
  display: flex;
  justify-content: center;
}

.hero-logo-art {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0.85;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- Sektionen --- */
.topic-section {
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.topic-section:first-of-type {
  border-top: none;
}
.topic-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.section-lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  max-width: 75ch;
}

/* --- Themen-Grid & Kacheln --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--knigge-green);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(27, 54, 44, 0.06);
  border-top-color: var(--knigge-gold);
}
.card .step {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--knigge-gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--text-dark);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--knigge-green-light);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.card:hover .read-more {
  transform: translateX(4px);
  color: var(--knigge-gold);
}

/* --- Anzeigen-Platzhalter --- */
.ad-slot {
  background: #f1f3f0;
  border: 1px dashed #ced4da;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 1.2rem;
  margin: 2.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Artikel-Layout --- */
.article-head {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.article-head h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}
.article-body {
  padding: 2rem 0 3rem;
  max-width: 70ch;
}
.article-body h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  border-left: 4px solid var(--knigge-gold);
  padding-left: 0.7rem;
}
.article-body ol, .article-body ul {
  padding-left: 1.3rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a { text-decoration: underline; }

.callout {
  background: #fbf8f2;
  border: 1px solid var(--knigge-gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--knigge-green); }
.callout ul { margin: 0.4rem 0 0; }

/* --- Footer --- */
footer.site-footer {
  background: var(--knigge-green);
  color: #ced4da;
  margin-top: 5rem;
  padding: 3rem 0;
  font-size: 0.88rem;
  border-top: 3px solid var(--knigge-gold);
}
footer.site-footer a { color: #f8f9fa; }
footer.site-footer a:hover { color: var(--knigge-gold); }
footer.site-footer .foot-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* --- Desktop-Optimierung --- */
@media (min-width: 768px) {
  .header-nav-list {
    gap: 1.8rem;
  }

  /* Der Hero-Bereich schließt das Logo nach unten hin fest ein */
  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 60%;
    z-index: 2;
  }

  /* Die Krone bleibt exakt oben rechts neben dem Text verankert */
  .hero-logo-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-width: 40%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
  }
  
  .hero-logo-art {
    opacity: 0.15; /* Edler Durchschein-Effekt hinter der Schrift */
    box-shadow: none;
    width: 100%;
    height: auto;
  }
}
