/*
Theme Name:	Kneitz-Fahrschule
Description:	A child theme to house custom coding & design by 3fconcept
Author:   	Paul Hoerner
Template: 	Divi
Version: 1.0.0
*/

/* @import url("../Divi/style.css");*/
/*@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700|Open+Sans:300,400,700');*/

:root {
  --color-primary: #E31E24;
  --color-secondary: #FFD400;
  --color-text: #1A1A1A;
  --color-white: #FFFFFF;
  --color-light: #F5F5F5;
  --color-gray: #8A8A8A;
  --color-border: #E5E5E5;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 10px;
  --transition: all 0.25s ease;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  background: var(--color-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

.container,
.et-l--header .et_builder_inner_content,
.et-l--footer .et_builder_inner_content,
.et_pb_row {
  width: 90%;
  max-width: var(--max-width);
}

/* Header */
#main-header {
  box-shadow: 0 3px 18px rgba(0,0,0,0.06);
}

#main-header,
#main-header.et-fixed-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
}

#top-menu li a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

#top-menu li a:hover,
#top-menu li.current-menu-item > a {
  color: var(--color-primary) !important;
}

/* Mobile Menu */
.et_mobile_menu {
  border-top: 3px solid var(--color-primary);
}

.et_mobile_menu li a:hover {
  background: var(--color-light);
  color: var(--color-primary) !important;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  padding: 100px 0;
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}

.hero-section .hero-subline {
  font-size: 20px;
  color: #444444;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Buttons */
.et_pb_button,
.button,
.wp-element-button {
  background: var(--color-primary);
  color: var(--color-white) !important;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 14px 26px !important;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.et_pb_button:hover,
.button:hover,
.wp-element-button:hover {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: var(--color-text) !important;
  transform: translateY(-2px);
}

.button-secondary .et_pb_button,
.et_pb_button.button-secondary {
  background: transparent !important;
  color: var(--color-text) !important;
  border-color: var(--color-text) !important;
}

.button-secondary .et_pb_button:hover,
.et_pb_button.button-secondary:hover {
  background: var(--color-text) !important;
  color: var(--color-white) !important;
}

/* Sections */
.section-light {
  background: var(--color-white);
}

.section-alt {
  background: var(--color-light);
}

.section-dark {
  background: var(--color-text);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p,
.section-dark li {
  color: var(--color-white);
}

/* Cards */
.info-card,
.et_pb_blurb.card-style,
.et_pb_module.card-style {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.info-card:hover,
.et_pb_blurb.card-style:hover,
.et_pb_module.card-style:hover {
  transform: translateY(-4px);
}

/* Icons / Blurbs */
.et_pb_blurb .et-pb-icon {
  color: var(--color-primary);
}

.highlight-box {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 24px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Formulare */
input,
textarea,
select,
.et_pb_contact_form input,
.et_pb_contact_form textarea {
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
}

input:focus,
textarea:focus,
select:focus,
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.12);
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-light);
  text-align: left;
}

/* Footer */
#main-footer {
  background: var(--color-text);
}

#footer-widgets,
#main-footer,
#main-footer p,
#main-footer a,
#footer-info {
  color: rgba(255,255,255,0.9) !important;
}

#main-footer a:hover {
  color: var(--color-secondary) !important;
}

.footer-cta {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
}

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-3 { margin-top: 30px; }
.rounded { border-radius: var(--radius); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* Responsive */
@media (max-width: 980px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .hero-section {
    padding: 70px 0;
  }

  .hero-section .hero-subline {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .et_pb_button,
  .button,
  .wp-element-button {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   TOP BAR
========================= */
.header-topbar {
  background: #f5f5f5;
  padding: 12px 0;
}

.header-topbar .et_pb_row {
  width: 90%;
  max-width: 1280px;
  background: #f8f8f8;
  border-radius: 18px;
  padding: 12px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.header-topbar .et_pb_column {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}

.header-topbar .et_pb_text {
  margin-bottom: 0 !important;
  width: 100%;
}

.header-topbar .et_pb_module {
  margin-bottom: 0 !important;
}

.header-topbar .et_pb_text_inner {
  font-size: 14px;
  line-height: 1.3;
  color: #1a1a1a;
}

.header-topbar a {
  color: #1a1a1a;
  text-decoration: none;
}

.header-topbar a:hover {
  color: #e31e24;
}

.header-topbar .et_pb_column:nth-child(1) .et_pb_text_inner {
  text-align: left;
}

.header-topbar .et_pb_column:nth-child(2) .et_pb_text_inner {
  text-align: center;
}

.header-topbar .et_pb_column:nth-child(3) .et_pb_text_inner {
  text-align: right;
}

/* =========================
   MAIN HEADER
========================= */
.header-main {
  background: #ffffff;
  padding: 16px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.header-main .et_pb_row {
  width: 90%;
  max-width: 1280px;
  display: flex;
  align-items: center;
}

.header-col-logo {
  width: 28%;
  display: flex;
  align-items: center;
}

.header-col-menu {
  width: 47%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-col-cta {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-logo img {
  max-height: 110px;
  width: auto;
  display: block;
}

.header-menu .et_pb_menu {
  background: transparent;
  width: 100%;
}

.header-menu .et_pb_menu_inner_container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu .et_pb_menu__wrap {
  justify-content: center;
  width: 100%;
}

.header-menu .et_pb_menu__menu nav ul {
  display: flex;
  align-items: center;
}

.header-menu .et_pb_menu__menu > nav > ul > li {
  padding-right: 28px;
}

.header-menu .et_pb_menu__menu > nav > ul > li:last-child {
  padding-right: 0;
}

.header-menu .et_pb_menu__menu > nav > ul > li > a {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 0 !important;
}

.header-menu .et_pb_menu__menu > nav > ul > li > a:hover,
.header-menu .current-menu-item > a {
  color: #e31e24 !important;
}

.header-cta {
  margin-bottom: 0 !important;
}

.header-cta .et_pb_button {
  background: #e31e24 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px !important;
  box-shadow: 0 8px 20px rgba(227,30,36,0.22);
}

.header-cta .et_pb_button:hover {
  background: #ffd400 !important;
  color: #1a1a1a !important;
}

/* =========================
   HERO IMAGE UNTER HEADER
========================= */
.header-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 980px) {
  .header-topbar {
    display: none;
  }

  .header-main {
    padding: 10px 0;
  }

  .header-main .et_pb_row {
    display: flex;
    align-items: center;
  }

  .header-col-logo {
    width: 70%;
  }

  .header-col-menu {
    width: 30%;
    justify-content: flex-end;
  }

  .header-col-cta {
    display: none;
  }

  .header-logo img {
    max-height: 70px;
  }

  .header-menu .et_pb_menu__wrap {
    justify-content: flex-end;
  }

  .header-menu .et_mobile_menu {
    border-top: 3px solid #e31e24;
  }
}