/*
Theme Name: Schwarzwald Guides
Theme URI: https://schwarzwald-guides.de
Author: Nicolai Stotz
Description: Theme für schwarzwald-guides.de im Erscheinungsbild des Naturparks Schwarzwald Mitte/Nord. Mit Hero-Video, Guides, Touren-Kalender (Anfrage statt Buchung), Tourenarten, Galerie und Kontaktseite. Ohne externe Schriften oder Tracker.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: schwarzwald-guides
*/

/* ------------------------------------------------------------------
   Farben und Maße – hier kannst du das Design zentral anpassen
------------------------------------------------------------------- */
:root {
  --c-green: #4c7a14;        /* Buttons, Akzente (Kontrast zu Weiß: 5:1) */
  --c-green-dark: #3b5f0f;
  --c-green-bright: #89bd23; /* Naturpark-Grün für Flächen */
  --c-blue: #1d71b8;
  --c-blue-dark: #165a93;
  --c-blue-light: #449cd6;
  --c-ink: #1f2d3a;
  --c-ink-soft: #4b5a68;
  --c-line: #dfe6ec;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f8ee;
  --c-bg-blue: #eaf3fa;
  --radius: 14px;
  --radius-pill: 50px;
  --shadow: 0 6px 24px rgba(20, 40, 60, .10);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--c-ink); background: var(--c-bg); }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--c-blue); text-underline-offset: 3px; }
a:hover { color: var(--c-blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--c-ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--c-blue-light); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons (Pillenform wie beim Naturpark) */
.btn, .wpcf7-submit, .wp-block-button__link {
  display: inline-block; background: var(--c-green); color: #fff !important; border: 2px solid var(--c-green);
  padding: 12px 30px; border-radius: var(--radius-pill); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover, .wpcf7-submit:hover, .wp-block-button__link:hover { background: var(--c-green-dark); border-color: var(--c-green-dark); transform: translateY(-1px); }
.btn--blue { background: var(--c-blue); border-color: var(--c-blue); }
.btn--blue:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); }
.btn--ghost { background: transparent; color: var(--c-green) !important; }
.btn--ghost:hover { background: var(--c-green); color: #fff !important; }
.btn--light { background: #fff; color: var(--c-green-dark) !important; border-color: #fff; }
.btn--light:hover { background: var(--c-bg-soft); border-color: var(--c-bg-soft); }

/* ------------------------------------------------------------------
   Kopfbereich
------------------------------------------------------------------- */
.topbar { background: var(--c-green-dark); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding: 7px 0; }
.topbar a { color: #fff; }
.topbar__coop { text-decoration: none; }
.topbar__coop:hover { text-decoration: underline; }
.topbar__mail { white-space: nowrap; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(20, 40, 60, .08); }
.admin-bar .site-header { top: 32px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); }
.brand img { max-height: 90px; width: auto; }
.brand__name { white-space: nowrap; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--c-green); }
.brand__name span { color: var(--c-blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: 10px 16px; border-radius: var(--radius-pill); color: var(--c-ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--c-bg-soft); color: var(--c-green-dark); }
.main-nav li:last-child > a { background: var(--c-green); color: #fff; }
.main-nav li:last-child > a:hover { background: var(--c-green-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--c-line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--c-ink); }
.nav-toggle__bars { display: inline-block; width: 20px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

@media (max-width: 860px) {
  .admin-bar .site-header { top: 46px; }
  .nav-toggle { display: inline-block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 14px 24px rgba(20,40,60,.12); display: none; padding: 10px 20px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 16px; }
  .topbar { font-size: .75rem; line-height: 1.35; }
  .topbar__coop { text-wrap: balance; }
  .brand__name { font-size: 1.25rem; }
  .topbar__inner { justify-content: center; text-align: center; padding: 6px 0; }
  .topbar__url, .topbar__mail { display: none; }
}

/* ------------------------------------------------------------------
   Hero mit Video
------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: #20364a; isolation: isolate; }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,25,40,.55) 0%, rgba(10,25,40,.35) 45%, rgba(10,25,40,.65) 100%); }
.hero__inner { padding: clamp(70px, 12vw, 150px) 0 clamp(150px, 18vw, 220px); max-width: 820px; }
.hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p { font-size: 1.2rem; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__playpause { position: absolute; right: 20px; top: 20px; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-pill); padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.hero__playpause:hover { background: rgba(0,0,0,.7); }
.hero--small .hero__inner { padding: clamp(50px, 8vw, 90px) 0; }

/* Vier Kacheln (Einstieg wie beim Naturpark) */
.tiles { margin-top: clamp(-130px, -12vw, -90px); position: relative; z-index: 5; }
.tiles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; box-shadow: var(--shadow); background: #20364a; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,40,0) 35%, rgba(10,25,40,.82) 100%); }
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; }
.tile__kicker { display: block; font-size: .85rem; opacity: .9; }
.tile__title { display: block; font-size: 1.35rem; font-weight: 800; }
.tile:hover, .tile:focus-visible { color: #fff; }
.tiles__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tiles__grid, .tiles__grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tiles__grid { gap: 12px; } .tile__title { font-size: 1.1rem; } }

/* ------------------------------------------------------------------
   Sektionen
------------------------------------------------------------------- */
.section { padding: clamp(50px, 7vw, 90px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--blue { background: var(--c-bg-blue); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__kicker { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--c-green); margin-bottom: 8px; }
.section__head h2 span, .accent { color: var(--c-green); }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.intro img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 28px; } }
.center { text-align: center; }
.intro__map img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.mt { margin-top: 34px; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-5px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-blue); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .3em; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__meta { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: .8em; }
.card__body .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; background: var(--c-bg-soft); color: var(--c-green-dark); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill); margin: 0 6px 6px 0; text-decoration: none; }
a.badge:hover { background: var(--c-green); color: #fff; }

/* Touren-Terminliste */
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.date-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); }
.date-badge { background: var(--c-green); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px; line-height: 1.1; }
.date-badge__day { display: block; font-size: 1.9rem; font-weight: 800; }
.date-badge__mon { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.date-row h3 { margin: 0 0 4px; font-size: 1.15rem; }
.date-row h3 a { color: inherit; text-decoration: none; }
.date-row h3 a:hover { color: var(--c-blue); }
.date-row p { margin: 0; color: var(--c-ink-soft); font-size: .95rem; }
.month-title { margin: 34px 0 14px; font-size: 1.15rem; color: var(--c-green-dark); border-bottom: 2px solid var(--c-bg-soft); padding-bottom: 6px; }
.date-row--past { opacity: .75; box-shadow: none; border: 1px solid var(--c-line); }
.date-row--past .date-badge { background: #8a97a3; }
@media (max-width: 700px) { .date-row { grid-template-columns: 70px 1fr; } .date-row .btn { grid-column: 1 / -1; text-align: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { padding: 8px 20px; border-radius: var(--radius-pill); border: 2px solid var(--c-line); background: #fff; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.chip.is-active { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.past details { margin-top: 40px; }
.past summary { cursor: pointer; font-weight: 700; color: var(--c-green-dark); padding: 8px 0; }
.notice { background: var(--c-bg-blue); border-left: 5px solid var(--c-blue); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }

/* Einzelseiten */
.page-head { background: var(--c-bg-soft); padding: clamp(36px, 6vw, 70px) 0; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 12px 0 0; font-size: 1.15rem; color: var(--c-ink-soft); max-width: 720px; }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: var(--c-ink-soft); }
.breadcrumb a { color: var(--c-ink-soft); }
.content { padding: clamp(36px, 5vw, 64px) 0; }
.entry-content { max-width: 780px; }
.entry-content.wide { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .3em; }
.entry-content img { border-radius: 10px; }
.alignwide { width: min(100vw - 40px, var(--wrap)); margin-inline: auto; }
.alignleft { float: left; margin: 0 24px 12px 0; } .alignright { float: right; margin: 0 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--c-ink-soft); }

.guide-layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.guide-aside { position: sticky; top: 110px; }
.guide-aside img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.guide-facts { list-style: none; padding: 0; margin: 18px 0 0; font-size: .98rem; }
.guide-facts li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
@media (max-width: 860px) { .guide-layout { grid-template-columns: 1fr; gap: 30px; } .guide-aside { position: static; max-width: 360px; } }

.tour-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.tour-box { background: var(--c-bg-soft); border-radius: var(--radius); padding: 26px; }
.tour-box h2, .tour-box h3 { font-size: 1.2rem; }
.tour-box dl { margin: 0 0 18px; }
.tour-box dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-green-dark); margin-top: 12px; }
.tour-box dd { margin: 2px 0 0; }
.tour-box ul { margin: 6px 0 0; padding-left: 1.2em; }
@media (max-width: 900px) { .tour-layout { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(135deg, var(--c-green-dark), var(--c-blue)); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; } .cta-band p { max-width: 640px; margin-inline: auto; }

/* Galerie */
.entry-content .wp-block-gallery, .gallery-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.entry-content .wp-block-gallery figure, .gallery-grid figure { margin: 0 !important; width: auto !important; }
.entry-content .wp-block-gallery img, .gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.gallery-grid.is-placeholder img { opacity: .9; }

/* Formulare / Contact Form 7 */
.wpcf7 form p { margin-bottom: 1.1em; }
.wpcf7 label { font-weight: 600; display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=date], .wpcf7 input[type=number], .wpcf7 textarea, .wpcf7 select {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--c-line); border-radius: 10px; background: #fff; margin-top: 5px; color: var(--c-ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--c-blue-light); outline: none; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; }
.wpcf7-not-valid-tip { color: #b3261e; font-size: .9rem; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 1em 0 0; padding: 12px 16px; }
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-box { background: var(--c-bg-soft); border-radius: var(--radius); padding: 26px; }
.contact-box h2 { font-size: 1.2rem; }
.form-hint { background: #fff8e1; border-left: 5px solid #e9ae00; padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; }

/* ------------------------------------------------------------------
   Fußbereich
------------------------------------------------------------------- */
.site-footer { background: #20364a; color: #dfe8f0; padding: 56px 0 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 6px; }
.footer__coop { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-top: 8px; }
.footer__coop img { display: block; max-height: 56px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.error-404 { text-align: center; padding: 90px 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 2px solid var(--c-line); text-decoration: none; }
.pagination .current { background: var(--c-green); color: #fff; border-color: var(--c-green); }
