/*
Theme Name: thehans-bordeaux
Author: You
Version: 2.0.0
Text Domain: thehans-bordeaux
*/

/* =========================
   Farben & Basis
========================= */
:root{
  --bordeaux: #5c0120;
  --bordeaux-dark: #3e0016;
  --coal: #36454f;
  --ivory: #fffff0;

  --ink: #111;
  --muted: rgba(54,69,79,.78);
  --card: rgba(255,255,255,.72);
  --line: rgba(54,69,79,.16);

  --radius: 18px;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.10);

  --max: 1160px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(92,1,32,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 5%, rgba(54,69,79,.14), transparent 55%),
    linear-gradient(180deg, var(--ivory), #fff 65%);
}

img{ max-width:100%; height:auto; display:block; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

:focus-visible{
  outline: 3px solid rgba(92,1,32,.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px; width:auto; height:auto; padding:10px 12px;
  background: var(--ivory);
  border:1px solid var(--line);
  border-radius:12px;
  z-index:9999;
}

/* =========================
   Links: überall Bordeaux (kein Blau)
========================= */
a, a:link, a:visited, a:hover, a:focus, a:active{
  color: var(--bordeaux) !important;
  text-decoration: none;
}
a:hover, a:focus{ color: var(--bordeaux-dark) !important; }

/* =========================
   Header: schwarz + beige Schrift
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255,255,240,.22);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
  flex-wrap: wrap;
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand img{ height: 30px; width:auto; }

/* Header-Links müssen BEIGE sein (übersteuern globales Link-!important) */
.site-header a,
.site-header a:link,
.site-header a:visited{
  color: rgba(255,255,240,.92) !important;
  font-weight: 800;
}

.nav{
  display:flex; gap: 16px; align-items:center; flex-wrap:wrap;
}
.nav a{
  position: relative;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

/* underline animation */
.nav a::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  background: var(--bordeaux);
  opacity: .95;
}
.nav a:hover::after{ transform: scaleX(1); }

.site-header .nav a:hover{
  color: var(--bordeaux) !important;
  background: rgba(92,1,32,.16);
  border-color: rgba(92,1,32,.42);
}

/* aktive Menüpunkte */
.site-header .current-menu-item > a,
.site-header .current_page_item > a,
.site-header .current-menu-ancestor > a{
  color: var(--bordeaux) !important;
  background: rgba(92,1,32,.16);
  border-color: rgba(92,1,32,.52);
}
.site-header .current-menu-item > a::after,
.site-header .current_page_item > a::after{
  transform: scaleX(1);
}

/* Mobile */
.burger{
  display:none;
  border:1px solid rgba(255,255,240,.35);
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  color: rgba(255,255,240,.92);
  font-weight: 900;
}
.burger:active{ transform: translateY(1px); }
@media (max-width: 820px){
  .burger{ display:inline-flex; }
  .nav{ display:none; width:100%; padding: 10px 0 14px; }
  .nav.is-open{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
  .nav a{ width:100%; }
}

/* =========================
   Hero / Headings
========================= */
.hero{ padding: 34px 0 10px; }
.hero-top{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 18px; flex-wrap:wrap;
}
.kicker{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
}
.h1{
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
  color: var(--coal);
}
.sub{
  max-width: 64ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* =========================
   Slider (Startseite)
========================= */
.slider{
  margin-top: 18px;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.45);
}
.slide{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 360px;
}
@media (max-width: 900px){
  .slide{ grid-template-columns: 1fr; }
}
.slide-media{
  position: relative;
  background: linear-gradient(135deg, rgba(92,1,32,.22), rgba(54,69,79,.16));
}
.slide-media img{
  width:100%; height:100%; object-fit:cover;
  filter: saturate(1.05) contrast(1.02);
}
.slide-body{
  padding: 26px;
  display:flex; flex-direction:column; justify-content:center;
  background: rgba(255,255,240,.60);
}
.slide-title{
  font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em;
  color: var(--coal);
}
.slide-desc{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}
.slider-controls{
  display:flex; gap:10px; justify-content:flex-end;
  padding: 12px;
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--line);
}
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,240,.70);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  color: var(--coal);
}
.pill:hover{ border-color: rgba(92,1,32,.35); color: var(--bordeaux); }

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92,1,32,.38);
  background: rgba(92,1,32,.10);
  color: var(--bordeaux) !important;
  font-weight: 900;
  width: fit-content;
}
.btn:hover{
  background: rgba(92,1,32,.16);
  border-color: rgba(92,1,32,.52);
  color: var(--bordeaux-dark) !important;
}
.btn.solid{
  background: var(--bordeaux);
  color: var(--ivory) !important;
  border-color: transparent;
}
.btn.solid:hover{ filter: brightness(1.03); }

/* =========================
   Sections + Grid Cards (Übersicht/Home)
========================= */
.section{ padding: 46px 0; }
.section-title{
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--coal);
}
.section-lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 75ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card{
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
@media (max-width: 980px){ .card{ grid-column: span 6; } }
@media (max-width: 640px){ .card{ grid-column: span 12; } }

.card-media{
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(92,1,32,.22), rgba(54,69,79,.12));
}
.card-media img{ width:100%; height:100%; object-fit:cover; }
.card-body{ padding: 14px 14px 16px; }
.card-title{ margin: 0 0 8px; font-size: 18px; color: var(--coal); }
.card-excerpt{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  color: rgba(54,69,79,.62);
  font-weight: 750;
  font-size: 13px;
}

/* =========================
   Content pages / Artikel
========================= */
.content{ padding: 28px 0 56px; }
.prose{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.prose h1{ margin-top: 0; color: var(--coal); }
.prose p, .prose li{ line-height: 1.75; color: rgba(17,17,17,.92); }

/* Content-Links gern unterstrichen */
.prose a{
  color: var(--bordeaux) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover{ color: var(--bordeaux-dark) !important; }

/* =========================
   Footer (schwarz) + Links rot
========================= */
.site-footer{
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,240,.22);
  background: rgba(0,0,0,.92);
  color: rgba(255,255,240,.92);
}
.footer-inner{
  padding: 28px 0;
  display:flex; flex-wrap:wrap; gap: 16px;
  align-items:flex-start; justify-content:space-between;
}
.small{
  color: rgba(255,255,240,.72);
  font-size: 13px;
  line-height: 1.5;
  max-width: 70ch;
}
.footer-links{
  display:flex; gap: 14px; flex-wrap:wrap;
}
.footer-links a{
  color: var(--bordeaux) !important;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92,1,32,.45);
  background: rgba(92,1,32,.08);
  font-weight: 800;
}
.footer-links a:hover{
  color: var(--ivory) !important;
  background: var(--bordeaux);
  border-color: var(--bordeaux);
}
/* Versteckt einsame Punkte am Ende von Excerpt-Texten */
.card-excerpt:empty,
.slide-desc:empty {
  display: none;
}