/* --- CSS RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F6F7F9;
  color: #20405A;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F6F7F9;
  color: #20405A;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: #20405A;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D1A639;
}
ul, ol {
  list-style: inside disc;
  margin: 0 0 16px 0;
  padding-left: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #F6F7F9;
  font-weight: 600;
  letter-spacing: 0.5px;
}
img {
  max-width: 100%;
  display: inline-block;
  border-radius: 8px;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #000000;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.25;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #000000;
}
strong, b {
  font-weight: 700;
}

/* --- PRIMARY CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- SECTIONS & LAYOUT SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(209, 166, 57, 0.07), 0 1.5px 6px rgba(32, 64, 90, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero {
  background: #20405A;
  color: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 32px rgba(32,64,90,0.065);
  margin-bottom: 50px;
  padding: 56px 0 40px;
}
.hero .cta-btn {
  background: #D1A639;
  color: #20405A;
  margin-top: 18px;
}

/* --- FLEX GRID CLASSES --- */
.feature-grid,
.card-container,
.card-grid,
.content-grid,
.text-image-section,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(32, 64, 90, 0.07);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffde9;
  border-radius: 18px;
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(209, 166, 57, 0.09);
  font-size: 1rem;
  color: #20405A;
}
.testimonial-card span {
  font-size: 0.98em;
  color: #B89018;
  margin-left: 12px;
  font-weight: 500;
}

/* --- BRAND BUTTONS --- */
.cta-btn,
button,
input[type="submit"] {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 13px 32px;
  background: #D1A639;
  color: #20405A;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 10px 0 rgba(209, 166, 57, 0.08);
  cursor: pointer;
  margin: 0 8px 0 0;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #20405A;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(209, 166, 57, 0.19);
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(209, 166, 57, 0.06), 0 0.5px 2px rgba(32, 64, 90, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 72px;
  position: relative;
  z-index: 100;
}
.logo img {
  height: 44px;
  width: auto;
  border-radius: 10px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 7px 14px;
  border-radius: 15px;
  transition: background 0.14s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F7F9;
  color: #D1A639;
}
.mobile-menu-toggle {
  display: none;
  background: #fffbe9;
  border-radius: 12px;
  border: none;
  font-size: 2rem;
  color: #20405A;
  padding: 3px 14px 2px;
  margin-left: 14px;
  box-shadow: 0 1px 8px 0 rgba(209, 166, 57, 0.08);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #D1A639;
  color: #fff;
}

/* --- MOBILE MENU / NAV OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,64,90,0.93);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.7,.2,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #D1A639;
  color: #20405A;
  border-radius: 50%;
  border: none;
  font-size: 2.2rem;
  padding: 0 18px 3px 18px;
  margin: 30px 0 18px 26px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(209, 166, 57, 0.12);
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fffbe9;
  color: #20405A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 0 0 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  background: transparent;
  padding: 13px 0 6px 0;
  border-radius: 15px;
  width: fit-content;
  transition: color 0.17s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D1A639;
  color: #20405A;
  outline: none;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 576px) {
  .mobile-menu-close {
    font-size: 2rem;
    margin: 22px 0 8px 11px;
    padding: 0 12px;
  }
  .mobile-nav {
    padding: 8px 0 0 16px;
    gap: 16px;
  }
  .mobile-nav a {
    font-size: 1.15rem;
  }
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #20405A;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  margin: 40px 0 0 0;
  padding: 36px 8px 19px 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #D1A639;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 6px 16px;
  border-radius: 15px;
  background: transparent;
  transition: background 0.1s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fffbe9;
  color: #20405A;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 4px;
  border-radius: 5px;
}

/* --- TABLES --- */
table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32, 64, 90, 0.06);
  overflow: hidden;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
th, td {
  border-bottom: 1px solid #f0eeea;
}
th {
  background-color: #fffbe9;
  color: #765B1A;
}
tr:last-child td {
  border-bottom: none;
}

/* --- FORMS & INPUTS (for future-proofing) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #D1A639;
  padding: 10px 15px;
  margin-bottom: 18px;
  outline: none;
  background: #fff;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #20405A;
}

/* --- HIGHLIGHTED/INFO/NEWS CARDS --- */
.highlight-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  background: #fffbe9;
  color: #20405A;
  padding: 16px 20px;
  border-radius: 15px;
  margin-bottom: 9px;
  font-weight: 500;
  font-size: 1.06rem;
}
.news-card, .newsletter-section, .article-card {
  background: #FFFAEF;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(209, 166, 57, 0.12);
  padding: 18px 18px 18px 24px;
  margin-bottom: 28px;
}

/* --- SECTION LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- GENERAL WARM, FRIENDLY DESIGN ACCENTS --- */
section,
.card,
.news-card,
.newsletter-section,
.article-card {
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(209, 166, 57, 0.08);
}
.hero,
.cta-btn,
button,
input[type="submit"],
.feature-grid > div,
.testimonial-card {
  border-radius: 24px !important;
}

/* --- FEATURE CARDS --- */
.feature-grid {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
}
.feature-grid > div {
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 1.2px 6px rgba(209,166,57,0.08);
  padding: 26px 18px 20px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  margin-bottom: 0;
  transition: transform 0.16s, box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 16px 0 rgba(209,166,57,0.16);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
  height: 38px;
  width: 38px;
  background: #fff;
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 1.2px 8px #d1a63933;
}

/* --- LISTS --- */
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 14px;
  padding-left: 0;
}
li {
  margin-bottom: 5px;
  color: #20405A;
  font-size: 1rem;
}
li:last-child {
  margin-bottom: 0;
}

/* --- ARTICLE / NEWS TILES --- */
article {
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 2px 9px 0 rgba(209, 166, 57, 0.11);
  padding: 20px 20px 20px 28px;
  margin-bottom: 18px;
  font-size: 1.07rem;
}
article h3 {
  margin-bottom: 8px;
  font-size: 1.09em;
  color: #20405A;
}

/* --- BRAND COLORS --- */
.bg-primary { background: #20405A; color: #fff; }
.bg-secondary { background: #D1A639; color: #20405A; }
.bg-accent { background: #F6F7F9; color: #20405A; }
.text-primary { color: #20405A; }
.text-secondary { color: #D1A639; }
.text-accent { color: #fffbe9; }

/* --- MICRO-INTERACTIONS --- */
.cta-btn, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.15s, background 0.18s, color 0.13s;
}

/* --- COOKIES CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe9;
  color: #20405A;
  box-shadow: 0 -2px 14px rgba(32,64,90,0.06);
  padding: 18px 22px 18px 22px;
  z-index: 12000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 1.07rem;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(.7,.2,.21,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-btn {
  background: #D1A639;
  color: #20405A;
  padding: 11px 23px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 8px 0 0;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.16s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #20405A;
  color: #fff;
  box-shadow: 0 3px 14px rgba(32,64,90,0.14);
}
.cookie-banner .cookie-btn-secondary {
  background: transparent;
  color: #D1A639;
  border: 2px solid #D1A639;
}
.cookie-banner .cookie-btn-secondary:hover, .cookie-banner .cookie-btn-secondary:focus {
  background: #fff;
  color: #20405A;
  border-color: #20405A;
}

/* --- COOKIE MODAL DIALOG --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,64,90,0.62);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fffbe9;
  color: #20405A;
  padding: 36px 32px 24px 32px;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(209, 166, 57, 0.20);
  min-width: 310px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: #D1A639;
  color: #20405A;
  border: none;
  border-radius: 18px;
  font-size: 1.3rem;
  padding: 2px 17px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(209,166,57,.14);
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #20405A; color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-category input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: #D1A639;
}
.cookie-category-label {
  font-size: 1.08em;
  font-weight: 500;
  color: #20405A;
}
.cookie-category-desc {
  font-size: 0.98em;
  color: #888;
  margin-left: 5px;
}
.cookie-category .cookie-essential {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}
.cookie-modal .cookie-btn {
  min-width: 106px;
}

/* --- RESPONSIVE DESIGN (FLEX & SPACING) --- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  section { padding: 25px 7px; }
  .feature-grid > div, .card { padding: 19px 14px 15px 14px; }
  .hero { padding: 40px 0 28px; }
  .footer-nav { gap: 16px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .footer-contact { font-size: 0.97rem; gap: 8px; }
  .feature-grid { gap: 17px !important; }
  .feature-grid > div { min-width: 170px; max-width: 98vw; }
  .content-grid { gap: 10px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 16px 10px; gap: 7px; }
  .section { padding: 20px 2px; }
}
@media (max-width: 576px) {
  header { padding: 0 7px; height: 58px; }
  .logo img {height: 34px;}
  h1 {font-size: 1.3rem;}
  h2 {font-size: 1.07rem;}
  h3 {font-size: 0.97rem;}
  .footer-nav {flex-direction: column;gap: 6px;}
  .footer-contact {flex-direction: column;align-items: flex-start;gap: 3px;margin-left: 5px;}
  .hero { padding-top: 20px; padding-bottom: 20px; border-radius: 0 0 15px 15px; }
  section { margin-bottom: 40px; border-radius: 12px; }
  .feature-grid > div { padding: 13px 8px; border-radius: 13px; }
  .newsletter-section, .news-card, .article-card, .testimonial-card, .card {padding: 12px 8px; border-radius: 12px;}
  .cookie-modal .cookie-modal-content {padding: 16px 5vw 11px 5vw; min-width: 88vw;}
}

/* --- CUSTOM ICON OVERRIDES --- */
img[alt*="Icon"],
img[alt*="icon"],
img[alt*="Telefon"],
img[alt*="E-Mail"],
img[alt*="Adresse"],
img[alt*="Öffnungszeiten"],
img[alt*="Drill"],
img[alt*="Pump"] {
  height: 28px;
  width: 28px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 4px #d1a63944;
  padding: 3px;
  margin-right: 9px;
}

/* --- ANIMATIONS --- */
.mobile-menu,
.cookie-banner,
.cookie-modal {
  will-change: transform, opacity;
}

@media (hover: none) and (pointer: coarse) {
  .cta-btn, button, .feature-grid > div, .footer-nav a, .main-nav a {
    transition: none;
  }
}
