/* =======================================================================
   CSS Reset & Normalize (mobile-first, geometric_structured)
   ======================================================================= */
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 { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior:smooth; }
body { background:#fff; color:#3C465F; font-family:"Lato", Arial, sans-serif; font-size:16px; line-height:1.7; min-height:100vh; }
a { color:inherit; text-decoration: none; transition:color 0.18s cubic-bezier(0.77,0,0.175,1); }
img { display:block; max-width:100%; height:auto; border:0; }
ul, ol { list-style: none; }
button { font-family: inherit; outline:none; border:none; background:none; cursor:pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* =======================================================================
   Base Variables
   ======================================================================= */
:root {
  --primary: #3C465F;
  --secondary: #EBD4CE;
  --accent: #A69E8C;
  --neutralBg: #FFFFFF;
  --neutralDark: #222326;
  --shadow: 0 4px 18px rgba(60,70,95,0.08);
  --radius: 18px;
  --radius-sm: 9px;
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:32px; --sp-5:40px; --sp-6:60px;
}

/* =============================
   Typography - Geometric Structured
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size:16px;
  font-weight:400;
  color: var(--primary);
  background: var(--neutralBg);
  letter-spacing: 0.025em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing:0.01em;
  line-height:1.15;
  text-rendering: geometricPrecision;
}
h1 { font-size: 2.25rem; margin-bottom: var(--sp-3); }
h2 { font-size: 1.6rem; margin-bottom: var(--sp-2); }
h3 { font-size: 1.2rem; margin-bottom: var(--sp-2); }
h4, h5, h6 { font-size: 1rem; margin-bottom: var(--sp-1); }
p, ul, ol, dl, blockquote { font-size:1rem; margin-bottom:var(--sp-2); color:var(--primary); }
strong { font-weight:700; }
.text-section h2, .text-section h3 { margin-top:var(--sp-2); }

/* Responsive Font Sizes */
@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.0rem; }
  h3 { font-size: 1.35rem; }
}

/* Angular/Structured Text Decoration for Hero Titles */
.section h1:not(.no-decoration), .section h2.hero {
  text-transform: uppercase;
  letter-spacing:0.06em;
}

/* =======================================================================
   Layout Utilities - Flexbox Only
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-2);
  display: flex;
  flex-direction: column;
  gap:0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.section {
  margin-bottom: var(--sp-6);
  padding: var(--sp-5) var(--sp-2);
}
@media (min-width: 900px) {
  .content-wrapper { flex-direction: row; gap: var(--sp-4);}
  .container { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}

/* Feature / Card Grid - Flexbox Only */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--neutralBg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s cubic-bezier(0.77,0,0.175,1);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(60,70,95,0.13);
}
.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: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background:var(--secondary);
  border-radius:var(--radius);
  padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-3);
  box-shadow: var(--shadow);
  min-width: 240px;
  flex: 1 1 250px;
  margin-bottom:20px;
  transition: box-shadow 0.25s cubic-bezier(0.77,0,0.175,1), transform 0.25s cubic-bezier(0.55,0,0.5,1);
}
.feature-item img {
  width:40px; height:40px; margin-bottom:8px;
}
.feature-item:hover {
  box-shadow:0 10px 34px rgba(60,70,95,0.12);
  transform:translateY(-4px) scale(1.03);
}

/* USP Lists, Stats */
.usp-list, .statistics, .workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.statistics {
  flex-direction: row;
  gap: var(--sp-3);
  background: #fff;
  border-radius: var(--radius-sm);
  padding:var(--sp-2);
  color: var(--accent);
  font-weight: bold;
  font-size:1.1rem;
  justify-content: flex-start;
}
.certifications {
  margin-top:var(--sp-1);
  display:flex; align-items:center; gap:12px;
  font-size:0.99rem;
}
.certifications img { width:24px; height:24px;}

/* Workflow Steps */
.workflow-steps {
  list-style-type: decimal;
  padding-left:20px;
  margin-bottom: var(--sp-2);
}
.workflow-steps li {
  font-weight:400;
  padding-left: 6px;
}

/* FAQ Lists */
.faq-list dt {
  font-weight:700;
  margin-top:var(--sp-1);
  margin-bottom:4px;
  font-family:'Lato', Arial, sans-serif;
  font-size:1.10rem;
}
.faq-list dd {
  margin-bottom:var(--sp-2);
  color:var(--primary);
}

/* =======================================================================
   Header & Navigation
   ======================================================================= */
header {
  background: var(--neutralBg);
  box-shadow: 0 2px 7px rgba(60,70,95,0.04);
  padding-top:var(--sp-2);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap:var(--sp-2);
  min-height:72px;
}
header img {
  height:54px;
}

.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    gap: var(--sp-3);
    flex: 1 1 auto;
    align-items: center;
  }
  .main-nav a {
    font-family: 'Lato', Arial, sans-serif;
    font-weight:700;
    text-transform: uppercase;
    font-size:1rem;
    letter-spacing:0.06em;
    padding:8px 6px;
    border-bottom:2px solid transparent;
    color:var(--primary);
    transition:color 0.17s, border-color 0.22s cubic-bezier(0.77,0,0.175,1);
  }
  .main-nav a:hover, .main-nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }
}

.cta-button {
  background: var(--primary);
  color: #fff;
  font-family:'Lato',Arial,sans-serif;
  font-weight: 700;
  font-size:1rem;
  letter-spacing:0.07em;
  border-radius: 40px;
  padding: 10px 32px;
  margin-left:var(--sp-2);
  box-shadow: 0 3px 13px rgba(65,62,82,0.07);
  transition: background 0.22s, color 0.12s, transform 0.14s, box-shadow 0.14s;
  border: none;
  outline:none;
  cursor:pointer;
  position: relative;
  z-index:2;
  text-transform:uppercase;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: #fff;
  transform:translateY(-1.5px) scale(1.035);
  box-shadow:0 8px 32px rgba(88,72,46,0.10);
}

/* Hamburger for Mobile */
.mobile-menu-toggle {
  display:inline-flex;
  align-items:center; justify-content:center;
  width:46px; height:46px;
  background:var(--secondary);
  color:var(--primary);
  font-size:2rem;
  border-radius:16px;
  border:2px solid var(--secondary);
  transition: background 0.17s, color 0.17s, border 0.17s;
  margin-left:var(--sp-2);
  z-index:24; position:relative;
}
@media (min-width:900px) {
  .mobile-menu-toggle { display:none; }
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background:var(--accent);
  color:#fff;
  border:2px solid var(--accent);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position:fixed; top:0; left:0; width:100vw; height:100vh;
  background:rgba(60,70,95,0.98);
  color:#fff;
  z-index:1020;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:flex-start;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.77,0,0.175,1), opacity 0.18s; 
  padding:var(--sp-4) var(--sp-3) 0 var(--sp-3);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1; pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none; color: #fff;
  font-size:2.3rem;
  border-radius:10px;
  margin-bottom:var(--sp-4);
  padding:4px 18px 4px 4px;
  z-index:1200;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background:var(--accent); color:#fff; }
.mobile-nav {
  display:flex;
  flex-direction:column;
  gap:var(--sp-3);
  width:100%;
}
.mobile-nav a {
  font-family:'Playfair Display',serif;
  font-weight:600;
  font-size:1.4rem;
  text-transform:uppercase;
  color:#fff;
  letter-spacing:0.08em;
  padding:12px 0;
  border-radius:10px;
  transition:background 0.14s, color 0.08s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background:var(--accent);
  color:#fff;
}
@media (min-width:900px) {
  .mobile-menu { display:none !important; }
}

/* =======================================================================
   Main Content, Sections, Hero
   ======================================================================= */
section {
  margin-bottom:var(--sp-6);
  padding:var(--sp-5) var(--sp-2);
  background:#fff;
  border-radius: var(--radius-sm);
}
section h1, section h2 {
  margin-bottom:var(--sp-2);
}

/* Hero CTA Section (index, kontakt, etc) */
section .cta-button {
  margin-top:var(--sp-2);
}

/* =======================================================================
   Testimonials
   ======================================================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom:20px;
  flex-direction: column;
  min-width: 220px;
  color: var(--neutralDark);
  transition:box-shadow 0.20s cubic-bezier(0.77,0,0.175,1), transform 0.20s;
}
.testimonial-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size:1.15rem;
  color:var(--primary);
  quotes: "\201E" "\201C";
  margin-bottom:var(--sp-1);
  font-style:italic;
}
.testimonial-card p {
  font-size:0.97rem;
  color:var(--primary);
  margin-bottom:0;
  align-self:flex-end;
}
.testimonial-card:hover {
  box-shadow:0 10px 32px rgba(44,40,84,0.13);
  transform:translateY(-2px) scale(1.02);
}

/* =======================================================================
   Text & Content Sections
   ======================================================================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap:var(--sp-2);
  color:var(--primary);
  max-width:900px;
}
.text-section ul, .text-section ol {
  margin-bottom:var(--sp-2);
  list-style: disc inside;
  padding-left:14px;
  color:var(--primary);
}
.text-section ul li, .text-section ol li {
  margin-bottom:8px;
  color:var(--primary);
}
.text-section h3 {
  margin-top:var(--sp-2);
}

.map-placeholder {
  display:flex;
  align-items:center;
  gap:18px;
  background:var(--secondary);
  border-radius:var(--radius);
  padding:var(--sp-3);
  margin-top:var(--sp-1);
}

/* =======================================================================
   Footer
   ======================================================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: var(--sp-5) 0 0 0;
  margin-top:var(--sp-6);
}
footer p {
  color: white;
}
footer .container {
  flex-direction: column;
  align-items:flex-start;
  gap:var(--sp-3);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-nav a {
  color: #fff;
  font-family:'Lato',Arial,sans-serif;
  font-size:0.97rem;
  text-decoration:underline;
  letter-spacing:0.025em;
  transition:color 0.16s;
}
.footer-nav a:hover {
  color:var(--accent);
}
.footer-contact {
  font-size:0.96rem;
  color:#fff;
  opacity: 0.94;
  margin-bottom:var(--sp-2);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 1.1rem;
  font-family: 'Playfair Display',serif;
  font-weight: 700;
}
.footer-brand img {
  width:32px; height:32px;
}

/* =======================================================================
   Cookie Consent Banner & Modal
   ======================================================================= */
.cookie-consent-banner {
  position:fixed;
  left:0; right:0; bottom:0;
  background:var(--primary);
  color:#fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap:14px;
  padding:18px 26px 18px 26px;
  z-index:1300;
  box-shadow: 0 -2px 18px rgba(45,39,92,0.06);
  transition:transform 0.25s cubic-bezier(0.86,0,0.07,1), opacity 0.15s;
}
.cookie-consent-banner.hide {
  opacity:0;
  pointer-events:none;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap:16px;
}
.cookie-consent-banner button {
  background: #fff;
  color: var(--primary);
  font-size:0.96rem;
  font-weight:700;
  border-radius:14px;
  padding:9px 18px;
  margin: 0 2px;
  cursor: pointer;
  border:none;
  transition:background 0.13s, color 0.13s;
}
.cookie-consent-banner button.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: var(--secondary);
  color:var(--primary);
}
.cookie-consent-banner button.reject {
  background: #fff;
  color:var(--primary);
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: var(--secondary);
  color:var(--primary);
}
.cookie-consent-banner button.settings {
  background:transparent;
  color:#fff;
  border:1.5px solid #fff;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background:var(--secondary);
  color:var(--primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position:fixed;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:95vw; max-width:420px;
  background:#fff;
  color:var(--primary);
  z-index:1400;
  border-radius:var(--radius);
  box-shadow: 0 16px 64px rgba(40,40,50,0.10);
  padding:30px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap:22px;
  opacity:1; pointer-events: all;
  transition:opacity 0.15s, transform 0.22s;
}
.cookie-modal.hide {
  opacity:0; pointer-events: none; transform:translate(-50%,-45%);
}
.cookie-modal h2 {
  font-size:1.12rem;
  font-family:'Lato',Arial,sans-serif;
  font-weight:700;
  letter-spacing:0.03em;
}
.cookie-modal .cookie-list {
  display:flex; flex-direction:column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size:1.01rem;
}
.cookie-modal .toggle {
  width:36px; height:18px;
  border-radius:18px;
  background:var(--secondary);
  position:relative;
  border:none;
  cursor:pointer;
  transition:background 0.21s;
}
.cookie-modal .toggle[data-checked="true"] {
  background: var(--accent);
}
.cookie-modal .toggle-circle {
  position:absolute; left:2px; top:2px;
  width:14px; height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 1px 4px rgba(68,68,88,0.11);
  transition:left 0.23s;
}
.cookie-modal .toggle[data-checked="true"] .toggle-circle {
  left:20px;
}
.cookie-modal .modal-actions {
  display:flex; flex-direction:row; gap:14px; justify-content:flex-end;
  margin-top:6px;
}
.cookie-modal button {
  background:var(--primary);
  color: #fff;
  padding:7px 17px;
  border-radius:10px;
  border:none;
  font-weight:600;
  font-size:0.98rem;
  cursor:pointer;
  transition:background 0.17s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background:var(--accent);
}
.cookie-modal .cookie-category.essential .toggle {
  background:var(--secondary) !important; opacity:0.65; cursor:not-allowed;
}

/* =======================================================================
   Animations & Micro-interactions
   ======================================================================= */
a, button, .cta-button, .card, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s cubic-bezier(0.77,0,0.175,1), background 0.17s, color 0.11s, transform 0.13s;
}
.cta-button:focus-visible, .cookie-modal button:focus-visible {
  outline:none;
  box-shadow:0 0 0 3px var(--accent);
}

/* =======================================================================
   Responsive Styles
   ======================================================================= */
@media (max-width: 900px) {
  .container {
    padding-left: var(--sp-2); padding-right: var(--sp-2); max-width:100vw;
  }
  .content-wrapper {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .footer-nav { flex-wrap:wrap; }
}
@media (max-width: 600px) {
  header .container, .footer .container {
    flex-direction: column; gap:10px; align-items:flex-start;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap:16px;
  }
  .feature-item, .card, .testimonial-card {
    min-width: 0;
  }
  .statistics { flex-direction:column; gap:7px; }
  .section, section { padding: var(--sp-3) var(--sp-1); }
  .footer-brand img { width:28px; height:28px; }
}

/* =======================================================================
   Forms, Links, Inputs - minimalist (for extension later)
   ======================================================================= */
input, textarea, select {
  padding:10px 7px;
  border:1px solid var(--accent);
  border-radius:var(--radius-sm);
  font-size:1.02rem;
  color:var(--primary);
  background:#fff;
}
input:focus, textarea:focus, select:focus {
  border-color:var(--primary);
  outline: none;
}

/* General Links */
a { text-decoration:none; }
a:hover, a:focus { color:var(--accent); }

/* Special blocks */
blockquote {
  border-left:3.5px solid var(--accent);
  padding-left:var(--sp-2);
  font-style:italic;
}

/* Misc Cards (not .card) */
.map-placeholder {
  border:1.5px solid var(--accent);
  box-shadow:0 2px 8px rgba(60,70,95,0.04);
}

/* CMS Generated .card-*, .card-grid etc. */
.card-grid {
  display:flex; flex-wrap:wrap;
  gap:24px;
  justify-content:space-between;
}

/* Section Spacing Rules Enforced */
section, .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;
}

/* =======================================================================
   Geometric / Angular Decorations
   ======================================================================= */
.feature-item, .card, .testimonial-card, section, .cookie-modal {
  border-radius:18px 40px 18px 40px / 18px 18px 40px 40px;
  /* Geometric look: fun with asymmetric radii */
}
.cta-button, .cookie-consent-banner button {
  font-family:'Lato',Arial,sans-serif;
  font-weight:700;
  border-radius:30px 12px 30px 12px;
}

/* =======================================================================
   Accessibility
   ======================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition:none !important;
    animation:none !important;
  }
}

/* =======================================================================
   Hide elements visually but keep screen reader access
   ======================================================================= */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
