/* 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-size: 16px;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: #fdf6f0;
  color: #173653;
  min-height: 100vh;
  font-size: 16px;
}
a {
  color: #0a873b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #f18f01;
}
ul,
ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}
strong {
  font-weight: bold;
}
hr {
  border: none;
  border-top: 1px solid #ead9cf;
  margin: 32px 0;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #173653;
  margin-bottom: 12px;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
}
p,
li {
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.subheadline,
.text-section > p:first-of-type {
  font-size: 1.125rem;
  color: #25537f;
  margin-bottom: 14px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* COLOR PALETTE: warm_friendly + brand */
:root {
  --primary: #173653;
  --secondary: #0a873b;
  --accent: #f8f8f8;
  --warm-1: #ffd9b3; /* warm orange/peach background-ish colors */
  --warm-2: #fff5e9; /* soft light background */
  --warm-3: #ffebd8;
  --button-main: #f18f01; /* warm friendly CTA */
  --button-main-hover: #ffb257;
  --card-bg: #fffefa;
  --border: #ead9cf;
  --shadow: rgba(241, 143, 1, 0.11);
  --text-dark: #173653;
  --text-light: #fffefa;
  --focus-outline: #f18f01;
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 32px 20px;
  margin-bottom: 32px;
}

/* HEADER */
header {
  background: #ffebd8;
  box-shadow: 0 2px 8px var(--shadow);
  width: 100%;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 12px;
}
.logo img {
  height: 44px;
  border-radius: 8px;
  background: transparent;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 0;
  color: #254890;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--warm-1);
  color: var(--secondary);
}
.cta-btn {
  background: var(--button-main);
  color: var(--text-light);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  margin-left: 18px;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s, color 0.18s;
  text-align: center;
  outline: none;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--button-main-hover);
  color: var(--primary);
  box-shadow: 0 4px 18px var(--shadow), 0 0 0 3px var(--focus-outline);
  text-decoration: none;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 8px;
  padding: 3px 9px;
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.19s;
  z-index: 102;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--focus-outline);
  background: var(--warm-1);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffebd8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 28px 48px 28px;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.74, 0.23, 0.34, 0.97);
  z-index: 111;
  width: 100vw;
  min-height: 100vh;
  box-shadow: 6px 0 40px rgba(241, 143, 1, 0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: var(--primary);
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--primary);
  padding: 15px 0 15px 8px;
  border-radius: 13px;
  font-family: "Montserrat", Arial, sans-serif;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--button-main);
  color: #fffefa;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #fff5e9 60%, #ffd9b3 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 50px 0 20px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 630px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* SECTION LAYOUTS & UTILITY CLASSES */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 3px 14px var(--shadow);
  padding: 28px 20px;
  min-width: 240px;
}
.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;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
  color: var(--primary);
  max-width: 500px;
  border: 1px solid var(--warm-1);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 24px 18px 26px 24px;
  min-width: 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  background: #fff5e9;
  border-radius: 9px;
  padding: 5px;
}

/* CUSTOM SECTION STYLES */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
}

.updates .update-highlight {
  background-color: #fffefa;
  border-radius: 14px;
  padding: 28px 28px 24px 28px;
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.updates .update-highlight p {
  flex: 1 1 270px;
  margin-bottom: 8px;
}

.callout {
  background: var(--warm-1);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 40px;
  text-align: center;
}
.callout .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.callout h2 {
  color: var(--primary);
}

.cta {
  background: var(--warm-1);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  text-align: center;
}
.cta .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2 {
  color: var(--primary);
}

.confirmation {
  text-align: center;
  background: #fff5e9;
  border-radius: 18px;
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.confirmation h1 {
  color: #0a873b;
  font-size: 2.1rem;
  margin-top: 18px;
}
.confirmation p {
  margin-bottom: 20px;
}

/* TESTIMONIALS */
.testimonials {
  background: #fff5e9;
  border-radius: 20px;
  box-shadow: 0 2px 18px var(--shadow);
  margin-bottom: 42px;
}
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card p {
  font-size: 1.06rem;
  font-style: italic;
  font-family: "Open Sans", Arial;
  color: #173653;
}
.testimonial-author {
  font-size: 1rem;
  margin-left: 8px;
  color: #0a873b;
  font-weight: 600;
  font-family: "Montserrat", Arial, sans-serif;
}

/* TEAM HIGHLIGHTS (About Us) */
.team-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 22px 0;
}
.team-highlights > div {
  background: #ffebd8;
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 18px 13px;
  min-width: 199px;
  flex: 1 1 200px;
}

/* TABLE STYLE */
.tarifvergleich {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 20px;
  background: #fffefa;
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 18px;
  overflow: hidden;
}
.tarifvergleich th,
.tarifvergleich td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: "Open Sans", Arial, sans-serif;
}
.tarifvergleich th {
  color: var(--primary);
  background: #ffebd8;
  font-size: 1.07rem;
}
.tarifvergleich tbody tr:last-child td {
  border-bottom: none;
}
.tarifvergleich td {
  color: var(--primary);
  font-size: 0.99rem;
}

/* FAQ/Live Note */
.live-update-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-1);
  color: var(--primary);
  border-radius: 12px;
  padding: 12px 17px;
  font-size: 1rem;
  margin-top: 18px;
}
.live-update-notice img {
  width: 24px;
  height: 24px;
}

.faq-list h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}
.faq-list p {
  margin-bottom: 10px;
}

/* FORM FIELDS (Kontakt) */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 34px;
}
.form-fields > div strong {
  font-size: 1.06rem;
}
.form-fields > div {
  background: #fff5e9;
  border-radius: 10px;
  padding: 10px 12px;
}
.form-fields .cta-btn {
  margin: 0;
}

/* FOOTER */
footer {
  background: #ffd9b3;
  padding: 36px 0 22px 0;
  margin-top: 40px;
  border-top: 4px solid #ffd9b3;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 7px;
}
.footer-nav a {
  color: var(--primary) !important;
  font-size: 1rem;
  border-radius: 6px;
  padding: 5px 9px;
  transition: background 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--button-main);
  color: #fffefa;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  color: #173653;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff5e9;
  border-radius: 7px;
  padding: 7px 13px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #173653;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
}
.footer-brand img {
  height: 24px;
  width: 24px;
  border-radius: 6px;
  background: transparent;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  width: 100vw;
  background: #fff5e9;
  color: var(--primary);
  box-shadow: 0 -2px 10px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 19px 7vw 19px 7vw;
  gap: 28px;
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  animation: fadein-banner 0.7s;
}
@keyframes fadein-banner {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner .cookie-msg {
  flex: 1 1 160px;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 10px 23px;
  background: var(--button-main);
  color: #fffefa;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  transition: background 0.17s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 2px 7px var(--shadow);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--button-main-hover);
  color: var(--primary);
  box-shadow: 0 4px 18px var(--shadow), 0 0 0 2px var(--focus-outline);
}
.cookie-banner .btn-outline {
  background: #fffefa;
  color: var(--primary);
  border: 2px solid var(--button-main);
}
.cookie-banner .btn-outline:hover,
.cookie-banner .btn-outline:focus {
  background: var(--button-main);
  color: #fffefa;
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(20, 18, 16, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-modal 0.24s;
}
@keyframes fadein-modal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cookie-modal {
  background: #fffefa;
  border-radius: 18px;
  box-shadow: 0 4px 30px rgba(241, 143, 1, 0.17), 0 0px 0px 1px var(--warm-1);
  padding: 44px 26px 32px 26px;
  width: 100%;
  max-width: 388px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 7px;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-toggle {
  width: 36px;
  height: 22px;
  border-radius: 14px;
  background: #edd6cf;
  position: relative;
  transition: background 0.17s;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-toggle.checked {
  background: var(--button-main);
}
.cookie-modal .cookie-toggle-inner {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
  box-shadow: 0 2px 6px var(--shadow);
}
.cookie-modal .cookie-toggle.checked .cookie-toggle-inner {
  left: 17px;
}
.cookie-modal .cookie-description {
  font-size: 0.98rem;
  color: #25537f;
  margin-bottom: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 17px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 940px;
  }
  .main-nav {
    gap: 10px;
  }
  .footer-contact {
    gap: 11px;
  }
}
@media (max-width: 830px) {
  .container {
    max-width: 740px;
  }
  .features .feature-grid,
  .card-container,
  .testimonial-slider,
  .team-highlights {
    flex-direction: column;
    gap: 18px;
  }
  .callout,
  .cta {
    padding: 32px 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    height: auto;
    flex-wrap: wrap;
    gap: 7px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    padding: 11px 17px;
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid,
  .card-container,
  .feature-grid,
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .features .feature-grid {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  section,
  .section {
    padding: 26px 8px;
    margin-bottom: 41px;
  }
  .hero {
    min-height: 200px;
    padding-top: 26px;
    padding-bottom: 14px;
  }
  .hero h1 {
    font-size: 1.43rem;
  }
  .callout,
  .cta {
    padding: 19px 7px;
    margin-bottom: 25px;
  }
  .testimonial-card {
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  .text-section {
    padding: 18px 10px;
  }
  .footer-contact > div {
    flex: 1 1 90px;
    padding: 6px 8px;
    font-size: 0.98rem;
  }
  .footer-brand {
    font-size: 0.91rem;
    flex-direction: column;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 16px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }
}
@media (max-width: 500px) {
  .hero {
    min-height: 80px;
    padding-top: 10px;
  }
}

/* ACCESSIBILITY OUTLINES */
a:focus,
.cta-btn:focus,
button:focus,
.main-nav a:focus,
.mobile-nav a:focus {
  outline: 2px solid var(--focus-outline) !important;
  outline-offset: 2px;
  background: var(--warm-1);
}

/* MICRO-INTERACTIONS (HOVER/SCALE) */
.cta-btn,
.feature-item,
.testimonial-card,
.footer-nav a,
.main-nav a,
.card {
  transition: transform 0.15s, box-shadow 0.21s, background 0.21s;
}
.cta-btn:hover,
.feature-item:hover,
.testimonial-card:hover,
.card:hover,
.footer-nav a:hover,
.main-nav a:hover {
  transform: translateY(-2px) scale(1.022);
  box-shadow: 0 4px 24px var(--shadow);
  background: #fff5e9;
}

/* PRINT (optional basic) */
@media print {
  header,
  footer,
  .cookie-banner,
  .mobile-menu {
    display: none !important;
  }
}
