/* ===== Frostglanz Beratung Professional Corporate CSS ===== */

/* ------ RESET & NORMALIZE ------ */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; font: inherit; }
body, html { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #F7FAFC;
  color: #1e2a33;
  min-height: 100vh;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #114B5F; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F9B248; text-decoration: underline; }
ul, ol { margin-left: 1.5em; margin-bottom: 1em; }
button, input, select, textarea { font-family: inherit; }
table { border-collapse: collapse; width: 100%; margin-bottom: 2em; }
th, td { text-align: left; padding: 12px 8px; }
th { background: #E4F0EF; font-weight: 700; font-family: 'Montserrat', Arial, Helvetica, sans-serif; }
td { background: #fff; }

/* ------ BRAND COLORS + FONTS ------ */
:root {
  --primary: #114B5F;
  --secondary: #E4F0EF;
  --accent: #F9B248;
  --gray-dark: #1e2a33;
  --gray: #47535E;
  --gray-light: #F7FAFC;
  --white: #fff;
  --shadow-main: 0 2px 12px rgba(17, 75, 95, 0.08);
  --radius: 10px;
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  src: local('Montserrat'), local('Montserrat-Bold');
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular');
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-top: 12px; margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
.subheadline { color: var(--gray); font-size: 1.2rem; margin-bottom: 20px; }

/* Text Sections */
.text-section { margin-bottom: 20px; }
.text-section h3 { margin-bottom: 10px; }

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 32px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 500px) {
  .container { padding: 0 8px; }
  .content-wrapper { padding: 22px 8px; }
}

/* ------ SECTIONS & SPACING ------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 600px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 28px 20px;
  min-width: 270px;
}

.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;
    align-items: flex-start;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--secondary);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(24,44,90,.07);
  color: var(--gray-dark);
}
.testimonial-card p {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--gray);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------ HEADER & NAVIGATION ------ */
header {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px 0 rgba(17,75,95,0.04);
  position: relative;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--gray-dark);
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--primary);
}

/* Header Logo */
header img {
  height: 38px;
  width: auto;
}
@media (max-width: 500px) {
  header img { height: 26px; }
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: var(--radius);
  border: none;
  outline: none;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17,75,95,.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  margin-right: 0;
  margin-bottom: 0;
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: #143F53;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(17,75,95,0.10);
}
.cta-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
}

/* --- Responsive Nav --- */
@media (max-width: 960px) {
  header .container { flex-wrap: wrap; gap: 0; }
  header nav { gap: 18px; }
}
@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none !important;
  }
  header .container { justify-content: space-between; gap: 0; }
}

/* ------ MOBILE MENU ------ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--secondary);
  border: none;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 112;
  box-shadow: 0 2px 8px rgba(17,75,95,0.10);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,75,95,0.96);
  z-index: 120;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(0.5,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 16px;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--accent);
  margin: 16px 26px 18px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff2d7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  gap: 17px;
  margin-right: 36px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--white);
  font-family: 'Montserrat',Arial,sans-serif;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: right;
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

@media (max-width:600px){
  .mobile-menu {
    padding-top: 0;
  }
  .mobile-menu-close { margin: 11px 9px 11px 0; }
  .mobile-nav { font-size: 1.1rem; margin-right: 9px; }
}

/* Overlay (_hidden by default_) */
body.mobile-menu-open { overflow: hidden!important; }

/* ------ SERVICE CARDS ------ */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 26px 20px 24px 20px;
  min-width: 255px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.service-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--gray);
  font-size: 1rem;
}
.service-card .price {
  font-size: 1.05rem;
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 8px 24px rgba(17,75,95,0.12);
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 1023px) {
  .service-cards { flex-wrap: wrap; gap: 20px; }
  .service-card { min-width: 185px; }
}
@media (max-width: 768px) {
  .service-cards { flex-direction: column; gap: 18px; }
  .service-card { min-width: 0; width: 100%; }
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--gray-light);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(17,75,95,.07);
  margin-bottom: 6px;
}
.faq-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.faq-item p { font-size: 1rem; color: var(--gray); }

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--gray);
}
.contact-details img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 9px;
}
.contact-details a {
  color: var(--primary);
  font-weight: 500;
}

/* Table Customizations */
table {
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { font-size: 1rem; }
thead tr { border-radius: var(--radius) var(--radius) 0 0; }
tbody tr:nth-child(odd) td { background: #f5f9fc; }
td, th { border-bottom: 1px solid #e4eef3; }
tbody tr:last-child td { border-bottom: none; }

/* ------ FOOTER ------ */
footer {
  background: var(--primary);
  color: #f1fbfc;
  padding: 36px 0 0 0;
  font-size: 0.95rem;
}
footer .container {
  flex-direction: column;
  gap: 12px;
}
.footer-cols {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 14px;
}
.footer-cols nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols nav a {
  color: #CAE7F2;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.97em;
  transition: color 0.16s;
}
.footer-cols nav a:hover {
  color: var(--accent);
}
.footer-contact {
  color: #CCE6F6;
  margin-bottom: 12px;
}
.footer-contact a { color: #F9B248; text-decoration: underline; }
footer img { height: 30px; width: auto; margin-bottom: 11px; }
@media (max-width: 780px) {
  .footer-cols {
    flex-direction: column;
    gap: 10px;
  }
  footer .container { gap: 0; padding: 0 11px; }
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 14px rgba(0,22,44,0.10);
  padding: 26px 18px;
  gap: 22px;
  font-size: 1rem;
  transition: transform 0.4s;
  opacity: 0.98;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  max-width: 570px;
  margin-right: 24px;
  color: #E4F0EF;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.cookie-btn {
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 26px;
  cursor: pointer;
  margin: 0 0 0 0;
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px #0003;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FFD280;
  color: var(--primary);
}
.cookie-btn.reject {
  background: #e2e8f0;
  color: #47535E;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e85c47;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #E4F0EF;
  border: 2px solid #E4F0EF;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E4F0EF;
  color: var(--primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6px 18px 9px;
    gap: 17px;
  }
  .cookie-banner__text { margin-right: 0; }
  .cookie-banner__actions { gap: 9px; }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1001;
  inset: 0;
  background: rgba(17,75,95,0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17,75,95,0.13);
  padding: 36px 32px 32px 32px;
  max-width: 420px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 6;
}
.cookie-modal h2 {
  font-size: 1.36rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-modal .cookie-toggle {
  width: 46px; height: 26px;
  border-radius: 18px;
  background: #E4F0EF;
  border: 1px solid #B4DCE4;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-modal .cookie-toggle .toggle-knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  transition: left 0.23s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 23px;
}
.cookie-modal .cookie-category .desc {
  font-size: 0.97em;
  color: #47535E;
  margin-left: 10px;
}
.cookie-modal .cookie-category.essential .desc {
  color: var(--primary);
}
.cookie-modal .cookie-modal-footer {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 17px 5px 18px 10px;
    max-width: 97vw;
  }
}

/* ------ MICROINTERACTIONS ------ */
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.19s, color 0.17s, box-shadow 0.14s, filter 0.13s;
}
.service-card {
  transition: box-shadow 0.22s, transform 0.22s;
}

/* CARD HOVER FX already added above */

/* ------ RESPONSIVE ------ */
@media (max-width: 992px) {
  .container { max-width: 97vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .content-wrapper { padding: 16px 6px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.64rem; }
  h2 { font-size: 1.18rem; }
  .service-card, .card, .faq-item, .testimonial-card, .content-wrapper { padding: 13px 3vw; }
}

/* ------ FINE PRINT: Misc Style Fine-tuning ------ */
::selection { background: var(--accent); color: #114B5F; }
h1,h2,h3,h4,h5,h6 { letter-spacing: .01em; }
hr { border: none; border-top: 1px solid #E4F0EF; margin: 16px 0; }

/* Ensuring FLEX layouts everywhere (no grid, no columns) */
/* Done in all major container/section/cards above */

/* Prevent overlapping */
.section, .service-cards, .content-grid, .card-container, .testimonial-card, .faq-list { margin-bottom: 20px; }

/* Visibly indicate focus for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ===== END Frostglanz Beratung Professional Corporate CSS ===== */
