/* ======= 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #f6f7fa;
  color: #222E43;
  min-height: 100vh;
  position: relative;
}
img, picture, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #F7931E;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #ca7100;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-top: 10px;
}
li+li {
  margin-top: 8px;
}

/* ======= BRAND COLORS & FONTS ======= */
:root {
  --pf-primary: #222E43;
  --pf-secondary: #E0E3E7;
  --pf-accent: #F7931E;
  --pf-accent-dark: #d07609;
  --pf-bg-body: #f6f7fa;
  --pf-elec-blue: #4BC3FC;
  --pf-pink: #EB3AF5;
  --pf-success: #47e67e;
  --pf-error: #fd5656;
  --pf-text-dark: #222E43;
  --pf-text-light: #F6F7FF;
  --pf-shadow: 0 4px 16px 0 rgba(34,46,67,.10);
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  src: local('Oswald'), url('https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--pf-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.25rem;
}
h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

/* ====== CORE CONTAINERS & GLOBAL SPACING ======= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--pf-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  transition: transform 0.22s cubic-bezier(0.51,1.01,0.19,1.19), box-shadow 0.22s;
}
.card:hover, .card:focus {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(34,46,67,.16);
  z-index: 1;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--pf-secondary);
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(34,46,67,0.07);
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--pf-primary);
}
.testimonial-card p {
  color: var(--pf-primary);
  font-weight: 500;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--pf-accent);
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(34,46,67,0.09);
  margin-bottom: 20px;
}

/* ====== HEADER & MOBILE NAVIGATION ======= */
header {
  background: var(--pf-primary);
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img[alt="ProtoFuse"] {
  height: 46px;
  min-width: 108px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: #fff;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
header nav a:hover,
header nav a:focus {
  background: var(--pf-accent);
  color: var(--pf-primary);
}
.cta.primary {
  background: var(--pf-accent);
  color: var(--pf-primary);
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: bold;
  border-radius: 10px;
  text-transform: uppercase;
  padding: 11px 30px;
  font-size: 1.07rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px 0 rgba(247,147,30,.13);
  transition: background 0.17s, color 0.17s, transform 0.17s;
  display: inline-block;
  margin-left: 10px;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--pf-elec-blue);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  z-index: 1101;
}
.mobile-menu {
  display: none;
  position: fixed;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, var(--pf-accent) 0%, var(--pf-elec-blue) 100%);
  top: 0;
  left: 0;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.56,0.13,0.34,0.99);
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 20px 26px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--pf-primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #950dae;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: var(--pf-primary);
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 15px 10px;
  border-radius: 8px;
  background: rgba(255,255,255, .84);
  margin-bottom: 6px;
  transition: background 0.13s, color 0.13s;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(34,46,67,.04);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--pf-primary);
  color: #fff;
}

@media (max-width: 900px) {
  header .container nav,
  header .container .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== HERO & SECTIONS ===== */
.hero {
  background: linear-gradient(90deg, var(--pf-elec-blue) 0%, #E0E3E7 80%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0 38px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero h1,
.hero h2 {
  color: var(--pf-primary);
  text-shadow: 0 3px 12px rgba(34,46,67, 0.06);
}
.hero h2 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 26px 0;
  color: #364468;
}

@media (max-width: 800px) {
  .hero {
    padding: 28px 0 22px 0;
  }
}

/* ===== ZIG-ZAG COLOR ACCENTS ===== */
section:not(.hero):nth-child(even) {
  background: linear-gradient(95deg, #ffe7b7 0%, #e0e3e7 100%);
}
section:not(.hero):nth-child(odd) {
  background: #fff;
}

/* ===== Produkt- & Feature-Listen ===== */
.produkte ul, .features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  margin-top: 18px;
}
@media (max-width: 820px) {
  .produkte ul, .features ul {
    flex-direction: column;
    gap: 12px;
  }
}
.produkte ul li, .features ul li {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(34,46,67,.08);
  border-radius: 12px;
  padding: 18px 16px;
  min-width: 200px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 1.04rem;
  transition: box-shadow 0.21s, transform 0.21s;
}
.produkte ul li:hover, .features ul li:hover {
  box-shadow: 0 2px 20px 0 rgba(34,46,67,.19);
  transform: translateY(-4px) scale(1.025);
}
.produkte ul li em,
.produkte ul li strong {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  color: var(--pf-accent);
  font-weight: 600;
}
.features ul li img,
.produkte ul li img {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}

/* ====== FAQ & LEGAL ====== */
.faq ul, .legal ul {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq ul li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(34,46,67,0.07);
  padding: 18px 14px;
}
.faq ul li strong {
  font-size: 1.06rem;
  color: var(--pf-accent);
}
.faq .contact-cta {
  margin-top: 34px;
  background: var(--pf-elec-blue);
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}
.faq .contact-cta h2 {
  color: #fff;
}
.faq .contact-cta p, .faq .contact-cta a {
  color: #fff;
}
.legal h2 {
  color: var(--pf-accent);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* ====== CONTACT & MAP ====== */
.kontakt .contact-details, .kontakt .map-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}
.kontakt .contact-details p, .kontakt .map-placeholder p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
}
.kontakt .contact-details img, .kontakt .map-placeholder img {
  width: 24px;
  height: 24px;
}
.kontakt .map-placeholder {
  background: var(--pf-secondary);
  border-radius: 10px;
  padding: 14px 10px;
}

/* ====== CTA BOXES ====== */
.cta {
  background: linear-gradient(95deg, var(--pf-accent) 0%, var(--pf-elec-blue) 100%);
  color: var(--pf-primary);
  border-radius: 18px;
  margin: 32px 0 0 0;
  box-shadow: 0 2px 12px 0 rgba(34,46,67, .08);
  padding: 28px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta h3 {
  color: var(--pf-primary);
  font-size: 1.6rem;
}

/* ====== THANK YOU PAGE ====== */
.thankyou {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4e7;
}
.thankyou .content-wrapper {
  align-items: center;
  gap: 24px;
  text-align: center;
}

/* ====== FOOTER ====== */
footer {
  background: #fff;
  border-top: 3px solid var(--pf-accent);
  margin-top: 70px;
  color: var(--pf-primary);
  font-size: .97rem;
  box-shadow: 0 -3px 18px 0 rgba(34,46,67, .07);
  width: 100%;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 16px 18px 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--pf-primary);
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: .98rem;
  opacity: .95;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--pf-accent);
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-contact img {
  width: 40px; height: 40px;
  margin-top: 4px;
}
.footer-contact p {
  color: var(--pf-primary);
  font-size: .97rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
  }
  .footer-contact { flex-direction: row; align-items: flex-start; }
}

/* ====== COOKIES – CONSENT BANNER & MODAL ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(93deg, var(--pf-primary) 0%, var(--pf-accent) 100%);
  color: #fff;
  padding: 22px 8px 22px 8px;
  box-shadow: 0 -6px 22px 0 rgba(34,46,67,.11);
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-size: 1.04rem;
  transition: transform .33s cubic-bezier(.41,1.02,.48,1.08);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 15px;
}
.cookie-banner button {
  border: none;
  padding: 9px 24px;
  border-radius: 9px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .17s, color .19s;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(0,0,0,.07);
}
.cookie-banner .accept {
  background: var(--pf-success);
  color: var(--pf-primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #42cf71;
}
.cookie-banner .reject {
  background: var(--pf-error);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #c93737;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--pf-primary);
  border: 1.5px solid var(--pf-accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--pf-accent);
  color: #fff;
}

/* Cookie Modal Styling */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,46,67,0.74);
  z-index: 3001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn .29s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--pf-primary);
  border-radius: 18px;
  padding: 34px 26px;
  min-width: 340px;
  max-width: 98vw;
  box-shadow: 0 6px 30px 0 rgba(34,46,67,.17);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieSlideIn .34s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);opacity:1; }
}
.cookie-modal-content h2 {
  color: var(--pf-accent);
  margin-bottom: 10px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: var(--pf-accent);
}
.cookie-category label {
  font-size: 1.07rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .close {
  position: absolute;
  top: 13px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .close:hover,
.cookie-modal .close:focus {
  color: var(--pf-accent);
}

@media (max-width: 540px) {
  .cookie-modal-content {
    min-width: 92vw;
    padding: 22px 10px 18px 10px;
  }
}

/* ====== RESPONSIVE LAYOUTS ======*/
@media (max-width: 1140px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .card-container, .content-grid, .features ul, .produkte ul {
    gap: 14px;
  }
  .footer-contact img {
    width: 32px; height: 32px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.6rem; }
  .card {
    padding: 15px 10px;
    font-size: .96rem;
  }
}
@media (max-width: 600px) {
  .hero, .thankyou { padding: 12px 0 20px 0; }
  .hero .container, .thankyou .container {
    padding: 0 4px;
  }
}

/* ====== MICRO-INTERACTIONS ====== */
button, .cta.primary { outline: none; }
button:active, .cta.primary:active {
  transform: scale(.98);
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.14);
}

/* ====== UTILITY SPACINGS ====== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }

/* ======= ENSURE NO ABSOLUTE POSITIONING FOR CONTENT CARDS ======= */
/* Position: absolute is only used for cookie modal close button */

/* ===== ACCESSIBILITY/FOCUS STATES ===== */
a:focus, button:focus, .cta.primary:focus {
  outline: 2.5px solid var(--pf-elec-blue);
  outline-offset: 2px;
  box-shadow: 0 4px 16px 0 rgba(75,195,252,.13);
}

/* ===== END ===== */