/* PETROKRAFT DEUTSCHLAND – Minimalist Responsive CSS STYLE 2024 */
/* Reset & Normalize (mobile first) */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #203040;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  margin: 0 0 24px 0;
  padding: 0 0 0 22px;
}
ul li, ol li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: #203040;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 2rem; margin-bottom: 18px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.17rem; margin-bottom: 10px; }
p {
  margin: 0 0 16px 0;
}
a {
  color: #12729B;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #203040;
  text-decoration: underline;
}
strong { font-weight: 700; }

/* Container & Sections */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
main {
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
  padding: 12px 18px;
}
header a img {
  height: 40px;
  width: auto;
  margin: 0 18px 0 0;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 6px;
  color: #203040;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f5f5f5;
  color: #12729B;
}
.btn-primary {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  background: #12729B;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(32,48,64,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  display: inline-block;
  text-align: center;
  outline: none;
}
.btn-primary:active {
  background: #203040;
}
.btn-primary:hover, .btn-primary:focus {
  background: #203040;
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(32,48,64,0.12);
}

/* Hamburger Mobile Menu (hidden desktop) */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #12729B;
  cursor: pointer;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  margin-left: 6px;
  transition: background 0.14s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f5f5f5;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 2px 24px 0 rgba(32,48,64,0.13);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.7,.18,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #12729B;
  align-self: flex-end;
  margin: 24px 24px 10px 0;
  cursor: pointer;
  border-radius: 7px;
  padding: 5px 10px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f5f5f5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
  margin-left: 32px;
  min-width: 190px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  padding: 10px 8px;
  border-radius: 6px;
  color: #203040;
  background: none;
  transition: background 0.17s, color 0.17s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #12729B;
  color: #fff;
}
/* Hide desktop menu and show burger on mobile only */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* HERO Section */
.hero {
  width: 100%;
  background: #f5f5f5;
  padding: 65px 0 60px 0;
  box-shadow: 0 2px 8px 0 rgba(32,48,64,0.04);
  margin-bottom: 0;
}
.hero .content-wrapper {
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  font-size: 2.1rem;
  color: #203040;
}
@media (min-width: 540px) {
  .hero h1 { font-size: 2.4rem; }
}
.hero p {
  color: #203040;
  font-size: 1.07rem;
  max-width: 680px;
}
.hero .btn-primary {
  margin-top: 10px;
}

/* FLEX Layout Patterns & Content Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -4px;
}
.card {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(32,48,64,0.09);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 38px 0 rgba(18,114,155,0.13);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}

.feature-grid,
.service-grid,
.value-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-item, .service-item, .value-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(32,48,64,0.06);
  padding: 26px 20px 22px 20px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature-item img, .service-item img, .value-card img {
  width: 38px; height: 38px;
  margin-bottom: 10px;
  opacity: 0.87;
}
.feature-item:hover, .service-item:hover, .value-card:hover {
  box-shadow: 0 7px 24px 0 rgba(18,114,155,0.13);
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .value-cards {
    flex-direction: column;
    gap: 18px;
  }
}

.value-cards {
  margin-bottom: 20px;
}
.value-card h3 { font-size: 1.2rem; color: #12729B; }
.value-card p { font-size: 1rem; color: #203040; }
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f5f5;
  border-radius: 15px;
  box-shadow: 0 3px 18px 0 rgba(32,48,64,0.07);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 760px;
  color: #203040;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 0 0;
  color: #203040;
}
.testimonial-card cite {
  font-style: normal;
  color: #12729B;
  font-size: 1rem;
  margin-left: 10px;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
}

.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f5f5f5;
  padding: 18px 18px;
  border-radius: 14px;
  margin: 20px 0 0 0;
}
.map-placeholder img { width: 48px; height: 48px; }

/* Footer */
footer {
  background: #F5F5F5;
  padding: 36px 0 0 0;
}
footer .container {
  padding-bottom: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #203040;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #12729B;
}
.footer-brand img {
  height: 35px;
  margin-bottom: 10px;
}
.footer-contact p {
  color: #203040;
  font-size: 0.98rem;
  margin: 0 0 6px 0;
}
.footer-social {
  display: flex;
  gap: 11px;
}
.footer-social a img {
  width: 28px; height: 28px;
  opacity: 0.90;
  transition: opacity 0.12s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #203040;
  color: #fff;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -1px 9px 0 rgba(32,48,64,0.15);
  font-size: 1rem;
  animation: fadeInBanner 0.5s cubic-bezier(0.7,0.18,0.18,1);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner__content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 580px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  margin-left: 26px;
}
.cookie-btn, .cookie-btn--primary {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  border: none;
  background: #fff;
  color: #203040;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 1.02rem;
  font-weight: 500;
  box-shadow: 0 1px 4px 0 rgba(32,48,64,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  min-width: 44px;
}
.cookie-btn--primary {
  background: #12729B;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #12729B;
  color: #fff;
}
.cookie-btn--primary:hover, .cookie-btn--primary:focus {
  background: #203040;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(32,48,64,0.18);
  z-index: 5000;
  min-width: 315px;
  max-width: 96vw;
  width: 420px;
  padding: 36px 28px 28px 28px;
  color: #203040;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s, transform 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  margin-bottom: 6px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 12px 18px;
}
.cookie-category__label strong {
  font-size: 1rem;
}
.cookie-toggle {
  accent-color: #12729B; /* native toggle color for switches */
  width: 22px; height: 22px;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 9px; right: 12px;
  background: none;
  border: none;
  font-size: 1.37rem;
  color: #12729B;
  border-radius: 7px;
  cursor: pointer;
  padding: 3px 7px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #f5f5f5;
}
@media (max-width: 600px) {
  .cookie-modal { width: 96vw; padding: 22px 7vw 20px 7vw; min-width: 0; }
}

/* Responsive & Spacing */
@media (max-width: 768px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  .container, .footer .container { padding: 0 8px; }
  section, .section { padding: 28px 5px 0 5px; }
  .content-wrapper, .section .content-wrapper { gap: 14px; }
  .feature-item, .service-item, .value-card { padding: 15px 12px; min-width: 0px; }
}

@media (max-width: 480px) {
  .hero { padding: 35px 0 30px 0; }
}

/* Focus States for Accessibility */
a, button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-btn--primary, .cookie-modal__close {
  outline: none;
}
a:focus-visible, .btn-primary:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-btn:focus-visible, .cookie-btn--primary:focus-visible, .cookie-modal__close:focus-visible {
  box-shadow: 0 0 0 3px #12729B33;
}

/* Miscellaneous / Utils */
::-webkit-input-placeholder { color: #919ba8; }
::-moz-placeholder { color: #919ba8; }
:-ms-input-placeholder { color: #919ba8; }
::placeholder { color: #919ba8; opacity: 1; }

/* Hide scrollbars on mobile menu overlay */
.mobile-menu { overflow-y: auto; }

/* ===== End of Minimalist Responsive Theme for PetroKraft Deutschland ===== */
