/*
Theme Name: BSK Classic Theme
Theme URI: https://www.bsk-kaempfe.de
Author: Custom
Description: Schlankes Classic-Theme für BSK Kämpfe
Version: 1.2.0
Text Domain: bsk-classic
*/

:root {
  --bsk-width: 1120px;
  --bsk-gap: 20px;

  --bsk-dark: #0b0b0b;
  --bsk-light: #efefef;
  --bsk-white: #ffffff;
  --bsk-text: #222222;
  --bsk-muted: #5f5f5f;
  --bsk-accent: #B50000;
  --bsk-red: #B50000;
  --bsk-red-soft: rgba(255,255,255,0.08);

  --bsk-radius: 10px;
  --bsk-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bsk-light);
  color: var(--bsk-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: var(--bsk-width);
  margin: 0 auto;
  padding-left: var(--bsk-gap);
  padding-right: var(--bsk-gap);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  backdrop-filter: blur(8px);
}

.site-header .inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-branding a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-branding img {
  max-height: 60px;
  width: auto;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* Main */
.content-area {
  padding: 0;
}

.entry-content {
  max-width: none;
  width: 100%;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.section {
  padding: 42px 0;
}

.entry-content > .section:last-of-type {
  padding-bottom: 0 !important;
}

.section-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--bsk-muted);
}

.bsk-center {
  text-align: center;
}

.bsk-left {
  text-align: left;
}

/* Hero mit Bild */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #777;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  padding: 90px 0 80px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 700;
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  background: var(--bsk-accent);
  color: #fff;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* Textblöcke */
.text-block {
  max-width: 920px;
  margin: 0 auto;
}

.text-block p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.text-block ul {
  margin-top: 18px;
  padding-left: 22px;
  line-height: 1.7;
}

/* Service */
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 0;
  box-shadow: none;
  padding: 34px 26px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grid-3 .card:nth-child(1),
.grid-3 .card:nth-child(3) {
  background: #d00000;
  color: #fff;
}

.grid-3 .card:nth-child(2) {
  background: #ffffff;
  color: var(--bsk-text);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
}

/* Fuhrpark */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vehicle-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--bsk-shadow);
  overflow: hidden;
}

.vehicle-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #ddd;
}

.vehicle-item .content {
  padding: 16px;
}

.vehicle-item h3 {
  margin: 0 0 8px;
}

/* Rechner Intro */
.bsk-rechner-intro {
  padding-top: 24px;
  padding-bottom: 0;
}

.bsk-rechner-copy {
  max-width: 100%;
  margin: 0;
}

.bsk-rechner-copy h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.bsk-rechner-copy p {
  margin-bottom: 10px;
}

.bsk-rechner-section {
  padding-top: 0;
}

/* Rechner Box */
.bsk-rechner-section .container {
  padding-left: 16px;
  padding-right: 16px;
}

.bsk-rechner-form {
  width: 100%;
  max-width: 1088px;
  margin: 0 auto;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 30px;
  box-sizing: border-box;
  box-shadow: var(--bsk-shadow);
}

.bsk-rechner-title {
  margin: 0 0 8px;
  font-size: 2.2rem;
  line-height: 1.2;
}

.bsk-rechner-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--bsk-muted);
}

.bsk-field {
  margin-bottom: 20px;
}

.bsk-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.bsk-rechner-form input,
.bsk-rechner-form select,
.bsk-rechner-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  font-family: inherit;
}

.bsk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bsk-actions {
  margin-top: 10px;
}

.bsk-ergebnis {
  margin-top: 22px;
  padding: 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e7e7e7;
}

#ergebnis-output {
  font-size: 18px;
  line-height: 1.7;
}

.bsk-hinweis {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.75;
}

.bsk-fehler {
  margin-top: 12px;
  color: #b42318;
  font-weight: 600;
}

/* Kontakt */
.section-red#Kontakt {
  background: var(--bsk-red);
  color: #fff;
  padding-top: 46px;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.bsk-contact-header {
  text-align: center;
  margin-bottom: 34px;
}

.bsk-contact-header h2 {
  font-size: 2.4rem;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.1;
}

.bsk-contact-header p {
  color: rgba(255,255,255,.82);
  margin: 0;
}

.section-red .bsk-contact-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
  margin-bottom: 0;
}

.section-red .bsk-contact-details,
.section-red .bsk-contact-item {
  min-height: 0;
  height: auto;
}

.section-red .bsk-contact-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
}

.section-red .bsk-contact-item p {
  margin: 0;
  color: #fff;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.section-red .bsk-contact-item strong {
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--bsk-dark);
  color: #fff;
  padding: 42px 0 36px;
  text-align: center;
  margin-top: 0 !important;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo img {
  max-height: 60px;
  margin: 0 auto;
  width: auto;
}

.footer-logo .custom-logo-link {
  display: inline-block;
}

.footer-nav {
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav li {
  display: flex;
  align-items: center;
}

.footer-nav li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  opacity: 0.6;
}

.footer-nav a {
  color: #fff;
  font-weight: 500;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.75;
}

.footer-copy p {
  margin: 0;
}

/* Scroll top */
.bsk-scroll-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.bsk-scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile */
@media (max-width: 900px) {
  :root {
    --bsk-gap: 20px;
    --bsk-width: 100%;
  }

  .site-header .inner {
    flex-wrap: wrap;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0 6px;
  }

  .grid-3,
  .grid-4,
  .vehicle-grid,
  .bsk-grid-3,
  .section-red .bsk-contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 70px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .card {
    min-height: auto;
  }

  .bsk-rechner-form {
    padding: 24px 18px;
  }

  .bsk-rechner-title {
    font-size: 1.8rem;
  }

  .section-red#Kontakt {
    padding-top: 36px;
  }

  .bsk-contact-header h2 {
    font-size: 2rem;
  }
}

/* letzte Section hat unten keinen Abstand */
.entry-content > .section:last-of-type {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Footer direkt anschließen */
.site-footer {
  margin-top: 0 !important;
}

/* Mehr Abstand zwischen Einleitungstext und den drei Boxen */
.grid-3 {
  margin-top: 100px;
}

.entry-content > .section:last-of-type {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.section-red#Kontakt {
  padding-bottom: 30px !important;
}


.site-footer {
  margin-top: 10 !important;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== Complianz Cookie Banner anpassen ===== */

/* Banner */
.cmplz-cookiebanner {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  font-family: inherit !important;
}

/* Text */
.cmplz-cookiebanner p {
  color: #222 !important;
}

/* Buttons allgemein */
.cmplz-cookiebanner .cmplz-btn {
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}

/* Akzeptieren Button (dein Goldton) */
.cmplz-cookiebanner .cmplz-accept {
  background: #B50000 !important;
  color: #fff !important;
  border: none !important;
}

/* Ablehnen Button */
.cmplz-cookiebanner .cmplz-deny {
  background: #e0e0e0 !important;
  color: #222 !important;
}

/* Einstellungen Button */
.cmplz-cookiebanner .cmplz-view-preferences {
  background: transparent !important;
  color: #B50000 !important;
  border: 1px solid #B50000 !important;
}

/* Hover Effekte */
.cmplz-cookiebanner .cmplz-btn:hover {
  opacity: 0.9 !important;
}