/*
Theme Name: gefahrgut-cevik
Theme URI: https://gefahrgut.org
Author: gefahrgut.org
Author URI: https://gefahrgut.org
Description: Professionelles B2B-Theme für die Gefahrgut-Plattform gefahrgut.org. Corporate-Hell-Design mit Navy/Orange-Akzenten für Spediteure, Gefahrgutbeauftragte und Industrie.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietär
Text Domain: gefahrgut-org
Tags: business, corporate, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, translation-ready
*/

/* ============================================================
   DESIGN-SYSTEM
   Palette: Marineblau (#0f2744) + Orange (#f97316) + Weiß + Hellgrau
   Typografie: Barlow Condensed (Headlines) + Source Sans 3 (Body)
   Prinzip: Industriell-präzise, behördlich vertrauenswürdig
   ============================================================ */

:root {
  /* Farben */
  --navy:       #0f2744;
  --navy-light: #1a3a5c;
  --navy-pale:  #e8eef5;
  --orange:     #f97316;
  --orange-dk:  #ea6a0a;
  --orange-pale:#fff4ed;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --red:        #dc2626;
  --green:      #16a34a;

  /* Typografie */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;

  /* Abstände */
  --container:  1200px;
  --radius:     4px;
  --radius-lg:  8px;

  /* Schatten */
  --shadow-sm:  0 1px 3px rgba(15,39,68,.08), 0 1px 2px rgba(15,39,68,.06);
  --shadow-md:  0 4px 16px rgba(15,39,68,.10), 0 2px 6px rgba(15,39,68,.07);
  --shadow-lg:  0 10px 40px rgba(15,39,68,.14), 0 4px 12px rgba(15,39,68,.08);
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: .02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--gray-900); }

.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--gray-500); font-size: .9rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media(max-width:600px) { .container { padding: 0 16px; } }

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-bg { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media(max-width:900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:500px) { .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; letter-spacing: .04em;
  padding: 12px 28px; border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer; transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dk); border-color: var(--orange-dk); color: var(--white);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: var(--white); color: var(--navy);
  border-color: var(--white);
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex; align-items: center; gap: 40px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); letter-spacing: .03em; }
.logo-text span { color: var(--orange); }

/* Navigation */
#primary-nav { margin-left: auto; }
#primary-nav ul { display: flex; gap: 4px; align-items: center; }
#primary-nav ul li a {
  font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; letter-spacing: .04em;
  color: var(--gray-700); padding: 8px 14px;
  border-radius: var(--radius); text-transform: uppercase;
  transition: all .18s;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--orange); background: var(--orange-pale);
}
.nav-cta a {
  background: var(--orange) !important; color: var(--white) !important;
  border-radius: var(--radius) !important;
}
.nav-cta a:hover {
  background: var(--orange-dk) !important;
  box-shadow: 0 2px 8px rgba(249,115,22,.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); transition: all .25s;
}
@media(max-width:860px) {
  .nav-toggle { display: flex; }
  #primary-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--navy);
    padding: 16px 24px; box-shadow: var(--shadow-md);
  }
  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 4px; }
  #primary-nav ul li a { display: block; padding: 10px 14px; }
}

/* ============================================================
   ADMIN BAR KOMPENSATION
   ============================================================ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(249,115,22,.08) 0%, transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.02) 40px,
      rgba(255,255,255,.02) 41px
    );
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media(max-width:860px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3);
  color: var(--orange); font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  padding: 6px 14px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  color: var(--white); margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p {
  color: rgba(255,255,255,.75); font-size: 1.1rem;
  margin-bottom: 32px; max-width: 500px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-tool-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px 16px; border-radius: var(--radius-lg);
  transition: all .25s;
}
.hero-tool-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(249,115,22,.4);
  transform: translateY(-3px);
}
.hero-tool-card .htc-icon {
  font-size: 28px; margin-bottom: 10px;
}
.hero-tool-card .htc-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; color: var(--white); letter-spacing: .03em;
}
.hero-tool-card .htc-desc {
  font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy-light);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .85rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.trust-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ============================================================
   SEKTION-TITEL
   ============================================================ */
.section-title { text-align: center; margin-bottom: 52px; }
.section-title .pre-label {
  display: inline-block;
  font-family: var(--font-display); font-size: .8rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p {
  color: var(--gray-500); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
}

/* ============================================================
   TOOL-KARTEN
   ============================================================ */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex; flex-direction: column;
}
.tool-card:hover {
  box-shadow: var(--shadow-lg);
  border-top-color: var(--orange);
  transform: translateY(-4px);
}
.tool-card-icon {
  width: 52px; height: 52px;
  background: var(--navy-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  transition: background .2s;
}
.tool-card:hover .tool-card-icon { background: var(--orange-pale); }
.tool-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tool-card p { color: var(--gray-500); font-size: .9rem; flex: 1; }
.tool-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.tool-badge {
  font-family: var(--font-display); font-size: .75rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px;
}
.tool-badge.free    { background: #dcfce7; color: #15803d; }
.tool-badge.premium { background: var(--orange-pale); color: var(--orange-dk); }
.tool-card-link {
  font-family: var(--font-display); font-size: .85rem;
  font-weight: 700; color: var(--navy); letter-spacing: .04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s, color .2s;
}
.tool-card-link:hover { color: var(--orange); gap: 8px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}
@media(max-width:860px) { .pricing-grid { grid-template-columns: 1fr !important; max-width: 420px; margin: 0 auto; } }

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--orange);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-size: .75rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 16px; white-space: nowrap;
}
.pricing-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 12px;
}
.pricing-price {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px;
}
.pricing-price .amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3rem; color: var(--navy); line-height: 1;
}
.pricing-price .currency { font-size: 1.4rem; color: var(--navy); font-weight: 700; }
.pricing-price .period { color: var(--gray-500); font-size: .9rem; }
.pricing-desc { color: var(--gray-500); font-size: .9rem; margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--gray-100);
  font-size: .92rem; color: var(--gray-700);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .fi { flex-shrink: 0; font-size: 14px; margin-top: 2px; }
.pricing-features li .fi.ok  { color: var(--green); }
.pricing-features li .fi.no  { color: var(--gray-300); }

/* ============================================================
   STATS / ZAHLEN
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media(max-width:700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  background: var(--white); padding: 32px 24px; text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 700; color: var(--navy); line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--orange); }
.stat-label { font-size: .85rem; color: var(--gray-500); }

/* ============================================================
   BLOG / NEWS CARDS
   ============================================================ */
.post-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card-img {
  background: var(--navy-pale); height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.post-card-body { padding: 20px; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--gray-500); margin-bottom: 8px;
}
.post-cat {
  background: var(--navy-pale); color: var(--navy);
  font-family: var(--font-display); font-size: .75rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px;
}
.post-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.3; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { font-size: .88rem; color: var(--gray-500); }

/* ============================================================
   CONTENT SEITEN (Seite / Post)
   ============================================================ */
.page-hero {
  background: var(--navy); padding: 52px 0 44px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--orange); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.3); }

.content-wrap { max-width: 860px; margin: 0 auto; }
.content-wrap .entry-content h2 { margin-top: 2.2rem; margin-bottom: .8rem; }
.content-wrap .entry-content h3 { margin-top: 1.8rem; margin-bottom: .6rem; color: var(--navy-light); }
.content-wrap .entry-content p  { margin-bottom: 1.1rem; }
.content-wrap .entry-content ul,
.content-wrap .entry-content ol { margin: 0 0 1rem 1.4rem; }
.content-wrap .entry-content ul li { list-style: disc; margin-bottom: .4rem; }
.content-wrap .entry-content ol li { list-style: decimal; margin-bottom: .4rem; }
.content-wrap .entry-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
  font-size: .93rem;
}
.content-wrap .entry-content th {
  background: var(--navy); color: var(--white);
  padding: 10px 14px; text-align: left;
  font-family: var(--font-display); font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.content-wrap .entry-content td {
  padding: 9px 14px; border-bottom: 1px solid var(--gray-200);
}
.content-wrap .entry-content tr:nth-child(even) td { background: var(--gray-50); }
.content-wrap .entry-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 12px 20px; margin: 1.5rem 0;
  background: var(--orange-pale);
  font-style: italic; color: var(--gray-700);
}
.content-wrap .entry-content a { color: var(--orange); text-decoration: underline; }
.content-wrap .entry-content code {
  background: var(--gray-100); padding: 2px 6px;
  border-radius: 3px; font-size: .88em;
  font-family: 'Courier New', monospace;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.sidebar-widget-title {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--navy-pale);
}
.sidebar-widget ul li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--gray-700); }
.sidebar-widget ul li a:hover { color: var(--orange); }

/* CTA Widget */
.widget-cta {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: center;
}
.widget-cta h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.widget-cta p { color: rgba(255,255,255,.7); font-size: .88rem; margin-bottom: 16px; }

/* ============================================================
   KONTAKT FORMULAR
   ============================================================ */
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
  display: block; font-family: var(--font-display);
  font-size: .85rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--gray-900);
  background: var(--white); outline: none; transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--navy); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-submit { @extend .btn; @extend .btn-primary; cursor: pointer; border: none; }

/* ============================================================
   NOTICE / HINWEIS BOXEN
   ============================================================ */
.notice {
  padding: 14px 18px; border-radius: var(--radius);
  border-left: 3px solid; margin-bottom: 16px;
  font-size: .92rem; line-height: 1.55;
}
.notice-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.notice-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.notice-success { background: #f0fdf4; border-color: var(--green); color: #14532d; }
.notice-danger  { background: #fef2f2; border-color: var(--red); color: #991b1b; }

/* ============================================================
   ADR SPEZIAL – Kennzeichen-Badge
   ============================================================ */
.adr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  font-family: 'Courier New', monospace; font-size: .8rem; font-weight: 700;
  padding: 3px 10px; border-radius: 2px; letter-spacing: .05em;
}
.adr-badge.orange { background: var(--orange); }
.adr-ref {
  font-family: 'Courier New', monospace; font-size: .8rem;
  color: var(--gray-500); border: 1px solid var(--gray-200);
  padding: 2px 8px; border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--navy); color: rgba(255,255,255,.75); }

.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media(max-width:860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.6; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display); font-size: .85rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .18s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bam {
  font-size: .75rem; color: rgba(255,255,255,.3);
  margin-top: 4px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* Divider */
.divider { height: 1px; background: var(--gray-200); margin: 32px 0; }
.divider-orange { background: linear-gradient(90deg, var(--orange), transparent); }

/* ============================================================
   HEADER ERWEITERUNGEN v2
   (Sprachumschalter, User-Dropdown, Login-Buttons)
   ============================================================ */
.hdr-right {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto; flex-shrink: 0;
}
.header-inner { flex-wrap: nowrap; }

/* Sprachumschalter */
.lang-switcher { display: flex; gap: 3px; list-style: none; }
.lang-switcher li a {
  display: block; padding: 4px 8px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; color: var(--gray-500);
  border: 1px solid var(--gray-200); border-radius: 2px;
  transition: all .15s;
}
.lang-switcher li a:hover,
.lang-switcher li.active a,
.lang-switcher li.current-lang a {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* User-Dropdown */
.usr-menu { position: relative; }
.usr-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 5px 12px; cursor: pointer;
  font-family: var(--font-body); font-size: .88rem; color: var(--gray-700);
  transition: border-color .15s;
}
.usr-btn:hover { border-color: var(--navy); }
.usr-btn img { border-radius: 50%; width: 24px; height: 24px; }

.usr-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 600;
}
.usr-drop.open { display: block; }

.ud-head {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 4px;
}
.ud-head strong { font-size: .9rem; color: var(--navy); }
.ud-head small  { font-size: .78rem; color: var(--gray-500); }

.usr-drop ul { padding: 6px 0; list-style: none; }
.usr-drop ul li a {
  display: block; padding: 9px 16px;
  font-size: .88rem; color: var(--gray-700); transition: background .12s;
}
.usr-drop ul li a:hover { background: var(--gray-50); color: var(--orange); }

/* Access-Denied Box */
.ggo-access-denied {
  background: var(--gray-50); border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center; margin: 24px 0;
}
.ggo-ad-icon { font-size: 56px; margin-bottom: 16px; filter: grayscale(1); opacity: .45; }
.ggo-access-denied h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 10px; }
.ggo-access-denied > p { color: var(--gray-500); max-width: 440px; margin: 0 auto 6px; }
.ggo-ad-hint { font-size: .88rem !important; margin-top: 8px !important; }
.ggo-ad-btns { display: flex; gap: 12px; justify-content: center; margin: 22px 0 16px; flex-wrap: wrap; }

/* Tool Wrapper */
.ggo-tool-wrapper { margin: 0 0 24px; }
.ggo-tool-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  padding: 10px 16px;
  font-family: var(--font-display); font-size: .9rem;
  font-weight: 600; letter-spacing: .05em;
}
.ggo-tool-icon { font-size: 18px; }
.ggo-tool-frame { display: block; border: 1px solid var(--gray-200); border-top: none; }

/* Responsive */
@media(max-width:860px) {
  .hdr-right { display: none; }
}

/* Login-Required Badge */
.fi.partial { color: #3b82f6; font-weight: 700; }

/* Registered Badge (Mit Anmeldung) */
.tool-badge.registered {
  background: #1e40af;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ============================================================
   MOBILE – Blog & Post-Cards
   ============================================================ */
@media(max-width:600px) {
  .post-card-img { height: 140px; }
  .post-card-body { padding: 14px; }
  .post-card h3 { font-size: .95rem; }
  .ggo-search-form input[type=search] { font-size: 16px; }
  .page-hero { padding: 32px 0 28px; }
  .page-hero h1 { font-size: 1.6rem; }
  .breadcrumb { font-size: .78rem; }
  .section { padding: 40px 0; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .pagination .nav-links { justify-content: center; }
  .pagination .page-numbers { min-width: 36px; height: 36px; font-size: .85rem; }
}

/* Single Post Layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media(max-width:860px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .single-layout aside {
    display: none;
  }
}
