/* ============================== */
/* Reset & Base (mobile-first)    */
/* ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #0F2433; background-color: #FFFFFF; line-height: 1.65; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #123A5A; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0E2F48; }
a:focus-visible, button:focus-visible { outline: 2px solid #2F6F62; outline-offset: 2px; border-radius: 6px; }

/* ============================== */
/* Brand Variables                */
/* ============================== */
:root {
  --c-primary: #123A5A;
  --c-secondary: #2F6F62;
  --c-accent: #F4F7FB;
  --c-text: #0F2433;
  --c-muted: #5B6B78;
  --c-border: #E6ECF2;
  --shadow-s: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.08);
  --shadow-m: 0 8px 24px rgba(18,58,90,0.10);
}

/* ============================== */
/* Typography                     */
/* ============================== */
h1, h2, h3 { font-family: Georgia, 'Times New Roman', Times, serif; color: var(--c-primary); line-height: 1.25; margin: 0 0 12px 0; }
h1 { font-size: 36px; letter-spacing: -0.2px; }
h2 { font-size: 24px; letter-spacing: -0.2px; }
h3 { font-size: 18px; letter-spacing: -0.1px; color: #153E60; }
p { margin: 0 0 12px 0; }
small, nav[aria-label="Brotkrumen"] { color: var(--c-muted); }

ul, ol { margin: 0 0 16px 20px; padding: 0; }
li { margin: 6px 0; }
li img { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; display: inline-block; }
strong { color: #0D2436; }

a.button { text-decoration: none; }

/* ============================== */
/* Layout Containers (Flex only)  */
/* ============================== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; }

/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { padding: 40px 0; }

/* Reusable Layout Utilities (Flex) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; padding: 20px; }
.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; background: var(--c-accent); border: 1px solid var(--c-border); border-radius: 12px; color: #0F2433; box-shadow: var(--shadow-s); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Visual rhythm between sections */
main > section + section { margin-top: 10px; }

/* ============================== */
/* Header & Navigation            */
/* ============================== */
header { background: #FFFFFF; border-bottom: 1px solid var(--c-border); position: relative; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 34px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--c-text); text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: var(--c-accent); color: var(--c-primary); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--c-border); background: #FFFFFF; color: var(--c-primary); font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease-in-out; }
.button:hover { background: #F8FAFD; box-shadow: var(--shadow-s); transform: translateY(-1px); }
.button.primary { background: var(--c-primary); color: #FFFFFF; border-color: var(--c-primary); }
.button.primary:hover { background: #0E2F48; box-shadow: var(--shadow-s); }
.button:active { transform: translateY(0); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Breadcrumbs */
nav[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
nav[aria-label="Brotkrumen"] a { color: var(--c-muted); text-decoration: none; }
nav[aria-label="Brotkrumen"] a:hover { text-decoration: underline; }

/* ============================== */
/* Text blocks                    */
/* ============================== */
.text-section { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.text-section ul { padding-left: 20px; }
.text-section a { color: var(--c-secondary); }
.text-section a:hover { color: #245A50; }

/* Testimonials (readability ensured) */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* ============================== */
/* Footer                         */
/* ============================== */
footer { background: #FFFFFF; border-top: 1px solid var(--c-border); margin-top: 20px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; padding: 24px 0; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { color: var(--c-text); text-decoration: none; padding: 4px 0; }
footer nav a:hover { color: var(--c-primary); text-decoration: underline; }
footer .text-section { max-width: 860px; }
footer img { height: 28px; width: auto; }

/* ============================== */
/* Lists with inline icons        */
/* ============================== */
.text-section li img { flex: 0 0 auto; }
.text-section li a { text-underline-offset: 2px; }

/* ============================== */
/* Mobile Menu (Hamburger)        */
/* ============================== */
.mobile-menu-toggle { appearance: none; border: 1px solid var(--c-border); background: #FFFFFF; color: var(--c-primary); width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-s); transition: background-color .2s ease, transform .08s ease; }
.mobile-menu-toggle:hover { background: var(--c-accent); }
.mobile-menu-toggle:active { transform: translateY(1px); }

.mobile-menu { position: fixed; inset: 0 0 0 0; background: rgba(15,36,51,0.35); display: flex; align-items: stretch; justify-content: flex-end; transform: translateX(100%); transition: transform .32s ease, opacity .32s ease; opacity: 0; pointer-events: none; z-index: 1000; }
.mobile-menu .mobile-nav { background: #FFFFFF; width: 86vw; max-width: 360px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-m); }
.mobile-menu .mobile-nav a { padding: 12px 10px; border-radius: 8px; color: var(--c-text); text-decoration: none; }
.mobile-menu .mobile-nav a:hover { background: var(--c-accent); color: var(--c-primary); }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; background: #FFFFFF; border: 1px solid var(--c-border); border-radius: 10px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-s); color: var(--c-primary); }

/* Open states (JS can toggle any of these) */
.mobile-menu.open,
.mobile-menu.active,
.mobile-menu[aria-hidden="false"],
body.menu-open .mobile-menu { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* ============================== */
/* Cookie Consent Banner & Modal  */
/* ============================== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #FFFFFF; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-m); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 1100; transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show,
.cookie-banner.open,
.cookie-banner[aria-hidden="false"],
body.cookie-open .cookie-banner { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner .button { min-width: 140px; }
.cookie-banner .button.accept { background: var(--c-secondary); color: #fff; border-color: var(--c-secondary); }
.cookie-banner .button.accept:hover { background: #255B51; }
.cookie-banner .button.reject { background: #FFFFFF; color: var(--c-primary); border-color: var(--c-border); }
.cookie-banner .button.settings { background: var(--c-accent); color: var(--c-primary); border-color: var(--c-border); }

/* Cookie settings modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(15,36,51,0.45); display: flex; align-items: center; justify-content: center; z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .25s ease; padding: 16px; }
.cookie-modal.open,
.cookie-modal.show,
.cookie-modal[aria-hidden="false"],
body.cookie-modal-open .cookie-modal { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-card { width: 100%; max-width: 560px; background: #FFFFFF; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-m); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle style */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; }
.switch { position: relative; width: 46px; height: 26px; background: #E7EEF6; border-radius: 20px; transition: background-color .2s ease; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; box-shadow: var(--shadow-s); transition: transform .2s ease; }
input[type="checkbox"].switch-input { position: absolute; width: 46px; height: 26px; opacity: 0; margin: 0; }
input[type="checkbox"].switch-input:checked + .switch { background: var(--c-secondary); }
input[type="checkbox"].switch-input:checked + .switch::after { transform: translateX(20px); }

/* ============================== */
/* Micro-interactions             */
/* ============================== */
.button, .main-nav a, .mobile-menu-toggle, .mobile-menu-close { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease; }

/* ============================== */
/* Responsive Rules               */
/* ============================== */
@media (min-width: 480px) {
  .logo img { height: 36px; }
}

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  /* Header/nav */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }

  /* Footer layout */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  footer nav { min-width: 220px; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .text-image-section { flex-wrap: nowrap; }
}

/* ============================== */
/* Accessibility helpers          */
/* ============================== */
:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================== */
/* Subtle section alternates      */
/* ============================== */
main > section:nth-child(odd) { background: #FFFFFF; }
main > section:nth-child(even) { background: #FFFFFF; }

/* ============================== */
/* Additional component styling   */
/* ============================== */
/* Ensure at least 20px spacing between sibling content blocks */
.content-wrapper > * + * { margin-top: 6px; }

/* Icons inside lists spaced correctly */
.text-section li { padding-left: 2px; }

/* Prevent overlap and provide breathing room */
.testimonial-card + .testimonial-card { margin-top: 16px; }

/* Cards and buttons subtle hover shadow */
.card:hover { box-shadow: var(--shadow-m); }

/* High-contrast text in testimonial on any background */
.testimonial-card, .testimonial-card * { color: #0F2433; }

/* ============================== */
/* Print basics                   */
/* ============================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: none; color: #000; }
}
