/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  color: inherit;
}
button {
  cursor: pointer;
}

/* --- BRAND VARIABLES (with fallbacks for legacy browsers) --- */
:root {
  --color-primary: #20405A;
  --color-secondary: #F4B749;
  --color-accent: #E9EDF1;
  --color-bg: #fff;
  --color-text: #1a2630;
  --color-shadow: rgba(32, 64, 90, 0.10);
  --color-card-bg: #fff;
  --color-footer-bg: #E9EDF1;
  --color-btn-hover: #173043;
  --color-secondary-hover: #e2a72b;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.subheadline {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  letter-spacing: 0.2px;
  margin-bottom: 24px;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
.text-section, .about-section {
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 12px;
}

/* --- LAYOUT --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.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;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border: solid 2px var(--color-accent);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 24px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 24px;
  border: 2px solid #e7e7e7;
}

/* --- HEADER & NAV --- */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
}
.main-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 24px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-text);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--color-primary);
  padding: 14px 32px;
  box-shadow: 0 4px 24px var(--color-shadow);
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-btn-hover);
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.035);
}
.cta-button.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-button.secondary:hover,.cta-button.secondary:focus {
  background: var(--color-secondary-hover);
  color: var(--color-btn-hover);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 1021;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,64,90,0.95);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 32px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-left: 40px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- HERO / MAIN SECTIONS --- */
main .section {
  margin-bottom: 60px;
  padding: 40px 0 36px 0;
}
@media (max-width: 768px) {
  main .section {
    padding: 30px 0 28px 0;
    margin-bottom: 36px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  justify-content: flex-start;
}
.service-card {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 2px solid var(--color-accent);
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 32px 30px 32px 30px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.service-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.025);
}

/* --- STORY & HIGHLIGHT CARDS --- */
.story-list, .interview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.highlight-card, .interview-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  border: 1.8px solid var(--color-accent);
  padding: 24px 24px 20px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.highlight-card:hover, .interview-card:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}
.highlight-card a, .interview-card a {
  margin-top: 8px;
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 600;
  font-family: var(--font-display);
  transition: color 0.18s;
}
.highlight-card a:hover, .interview-card a:hover {
  color: var(--color-primary);
}

.story-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.story-filter button {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  border-radius: 8px;
  border: none;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 2px;
  box-shadow: 0 2px 10px rgba(32, 64, 90, 0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.story-filter button:hover, .story-filter button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.testimonial-card {
  flex: 1 1 260px;
  max-width: 370px;
  min-width: 220px;
  color: var(--color-text);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 2px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 18px 22px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-style: italic;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card span {
  font-size: 1rem;
  font-style: normal;
  color: var(--color-primary);
  margin-top: 12px;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}

/* --- MAP STATIC (Kontakt) --- */
.map-static {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  background: var(--color-accent);
  border-radius: 10px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  padding: 48px 0 24px 0;
  margin-top: 40px;
  border-top: 4px solid var(--color-secondary);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.footer-nav a:hover,.footer-nav a:focus {
  background: var(--color-accent);
}
.contact-short {
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.55;
  margin-top: 4px;
}
.newsletter-signup {
  max-width: 260px;
}
.newsletter-signup h4 {
  font-size: 1.12rem;
  margin-bottom: 4px;
  color: var(--color-primary);
}

/* --- LINKS & MICRO INTERACTIONS --- */
a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .container {
    max-width: 970px;
  }
  .footer-content {
    gap: 20px;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .main-nav { gap: 12px; margin-left: 16px; }
  .footer-content { gap: 12px; }
  .feature-grid, .service-list, .story-list, .interview-list, .testimonial-slider {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

@media (max-width: 780px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    height: 60px;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 8px;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid, .service-list, .story-list, .interview-list, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-content {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 530px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.14rem; }
  .section { padding: 24px 0; margin-bottom: 28px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-bg);
  box-shadow: 0 -2px 16px var(--color-shadow);
  border-top: 3px solid var(--color-secondary);
  z-index: 3002;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  gap: 20px;
  transition: transform 0.32s cubic-bezier(0.77,0,0.175,1);
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 14px;
  margin-bottom: 0;
  max-width: 440px;
  font-weight: 400;
}
.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  border: none;
  margin: 0 8px 0 0;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.cookie-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-btn-hover);
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-secondary-hover);
  color: var(--color-btn-hover);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 8px;
  }
  .cookie-consent-banner p {
    font-size: 0.96rem;
    max-width: 95vw;
  }
  .cookie-btn {
    margin-bottom: 8px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 64, 90, 0.70);
  z-index: 3004;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px var(--color-shadow);
  width: 92vw;
  max-width: 420px;
  padding: 36px 26px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideUp .33s cubic-bezier(0.77, 0, 0.175, 1);
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fadeIn {
  from { background: rgba(32, 64, 90, 0); }
  to { background: rgba(32, 64, 90, 0.70); }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-switch {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-accent);
  position: relative;
  margin-right: 6px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cookie-switch input {
  display: none;
}
.cookie-switch span {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s, background 0.16s;
}
.cookie-switch input:checked + span {
  left: 20px;
  background: var(--color-secondary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: flex-end;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  font-size: 1.8rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-secondary); 
}

/* --- GEOMETRIC STRUCTURE DECORATIONS --- */
.feature-item, .service-card, .testimonial-card, .highlight-card, .interview-card {
  border-radius: 18px;
  border-style: solid;
  border-width: 2.5px;
  border-color: var(--color-accent);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  position: relative;
}
.feature-item::after, .service-card::after {
  content: '';
  display: block;
  position: absolute;
  width: 34px;
  height: 34px;
  bottom: -15px;
  right: -15px;
  background: var(--color-secondary);
  opacity: 0.16;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: 0;
}
.service-card::after { background: var(--color-primary); opacity: 0.09; }

/* --- FORM FIELDS (for newsletter etc) --- */
input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  background: var(--color-accent);
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  width: 100%;
  margin-bottom: 16px;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border: 2px solid var(--color-secondary);
  box-shadow: 0 1px 7px var(--color-shadow);
}

/* --- ERROR/STATES --- */
input.error, textarea.error {
  border-color: #c0392b;
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #AAA; }
::-moz-placeholder { color: #AAA; }
:-ms-input-placeholder { color: #AAA; }
::placeholder { color: #AAA; }

.hide {
  display: none !important;
}

/*--- Print styles ---*/
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #222;
  }
}
