/* Schlosslauf Berlin | Geometric Structured Design | style.css */

/* ==== RESET & BASE ==== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Arial', 'Montserrat', sans-serif;
  font-weight: 400;
  color: #222325;
  background-color: #fff;
  min-height: 100vh;
  letter-spacing: 0.03em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #00497A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7B32B;
  outline: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 12px;
  font-size: 1rem;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #00497A;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, .text-section {
  margin-bottom: 16px;
  font-size: 1.07rem;
  color: #23272A;
}
blockquote {
  font-style: italic;
  color: #00497A;
  margin-bottom: 10px;
}
cite {
  display: block;
  font-size: 0.98rem;
  color: #535353;
}
.table, table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
thead th {
  background: #00497A;
  color: #fff;
  text-align: left;
  font-size: 1rem;
  padding: 11px 13px;
}
tbody td {
  padding: 10px 13px;
  border-bottom: 1.5px solid #E8E8E8;
}
tbody tr:nth-child(odd) td {
  background: #F7F8FA;
}
tbody tr:last-child td {
  border-bottom: none;
}
input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #00497A;
  border-radius: 8px;
  transition: border-color 0.2s;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
}
input[type="search"]:focus {
  border-color: #F7B32B;
}

/* ==== COLOR VARS ==== */
:root {
  --color-primary: #00497A;
  --color-secondary: #E8E8E8;
  --color-accent: #F7B32B;
  --color-bg-light: #fff;
  --color-bg-gray: #F7F8FA;
  --color-text-dark: #222325;
  --color-text-light: #fff;
  --radius-geometric: 16px;
  --radius-card: 18px 18px 0 0;
  --shadow-card: 0 7px 28px 0 rgba(0,12,30,0.11);
  --shadow-hover: 0 6px 18px 0 rgba(0,73,122,0.17);
  --transition-basic: 0.17s cubic-bezier(.61,.28,.36,.82);
}

/* ==== LAYOUT STRUCTURE & FLEXBOX GRIDS ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-geometric);
  box-shadow: 0 2px 10px 0 rgba(0,73,122,0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-gray);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px 24px;
  flex: 1 1 320px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition-basic), top var(--transition-basic);
  border: 2.5px solid var(--color-secondary);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
  top: -3px;
}
.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;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 rgba(0,12,30,0.07);
  border-left: 5px solid var(--color-accent);
  border-radius: 12px 2.5em 12px 2.5em;
  min-width: 0;
  color: #202227;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.cta {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-geometric);
  margin-bottom: 40px;
}
.cta .cta-primary {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  border: none;
}

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  border-bottom: 2.5px solid var(--color-secondary);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: var(--color-text-light);
}
header img {
  height: 46px;
  width: auto;
}
.cta-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 13px 32px;
  border-radius: 36px;
  border-bottom: 3px solid #01365a;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px 0 rgba(0,73,122,0.10);
  transition: background var(--transition-basic), color var(--transition-basic), box-shadow var(--transition-basic), border var(--transition-basic);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  margin-left: 20px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  box-shadow: 0 7px 25px 0 rgba(247,179,43, 0.18);
  border-bottom: 3px solid #d39c12;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 2.5em;
  padding: 9px 15px;
  cursor: pointer;
  transition: background 0.13s, color 0.18s;
  z-index: 32;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}

/* ==== MOBILE NAV ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 20px;
  z-index: 1000;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.8,.29,.39,.95);
  box-shadow: 9px 0 36px 0 rgba(0,12,24,0.12);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  padding: 0 8px 0 0;
  margin-bottom: 20px;
  transition: color 0.13s;
  z-index: 1099;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 600;
  font-size: 1.36rem;
  color: var(--color-primary);
  padding: 8px 4px 8px 0;
  border-radius: 8px;
  transition: background 0.16s;
  min-width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(97deg, #E8E8E8 61%, #F7B32B 116%);
  border-radius: 0 0 48px 48px / 0 0 30px 30px;
  min-height: 320px;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: row;
}
.hero .content-wrapper {
  gap: 18px;
  max-width: 670px;
  padding: 42px 0 38px 0;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #00497A;
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.045em;
  margin-bottom: 13px;
}
.hero p {
  font-size: 1.15rem;
  color: #3b4652;
}

/* ==== BUTTONS ===== */
button, .cta-primary, input[type="submit"] {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  border: none;
}
button, input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 32px;
  font-size: 1.13rem;
  transition: background var(--transition-basic), color var(--transition-basic), box-shadow var(--transition-basic);
  cursor: pointer;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 7px 22px 0 rgba(247,179,43,0.13);
}

/* ==== LISTS & ICONS ==== */
ul li, ol li {
  position: relative;
  padding-left: 0.6em;
}
ul li img {
  height: 1.3em;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}
/* Custom geometric list bullets: use before except when img exists */
ul li:not(:has(img))::before {
  content: "";
  display: inline-block;
  margin-right: 10px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #00497A 60%, #F7B32B 140%);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  border-radius: 3px 8px 2px 5px;
  vertical-align: middle;
}

/* ==== FOOTER ==== */
footer {
  background: #E8E8E8;
  border-top: 2.5px solid #d2d7df;
  padding: 38px 0 30px 0;
}
footer .container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-right: 36px;
}
footer nav a {
  color: #00497A;
  font-weight: 600;
  font-size: 1.04rem;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.13s, color 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  color: #F7B32B;
  background: #fff6e2;
}
.footer-contact {
  flex: 2 1 320px;
  font-size: 0.97rem;
  color: #2d353d;
  text-align: left;
  line-height: 1.75;
}
footer img {
  height: 33px;
  width: auto;
  margin-right: 18px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card blockquote {
  color: #00497A;
  font-size: 1.12rem;
  margin-bottom: 0.3em;
  font-style: italic;
  background: transparent;
}
.testimonial-card cite {
  color: #3e3b36;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.03em;
}

/* ==== MODALS & OVERLAYS ==== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 25, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1900;
}
.modal-content {
  background: #fff;
  border-radius: 22px;
  max-width: 400px;
  width: 94vw;
  padding: 34px 24px 26px 24px;
  box-shadow: 0 14px 50px rgba(0,73,122,0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalShow 0.25s cubic-bezier(.49,.11,.33,.99);
}
@keyframes modalShow {
  0% { transform: scale(0.92) translateY(32px); opacity: 0.36; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
/* Switch toggle for cookies */
.cookie-switch {
  appearance: none;
  width: 42px;
  height: 22px;
  background: #dddddd;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch:checked {
  background: var(--color-accent);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 9px;
  background: #fff;
  transition: left 0.17s, background 0.1s;
}
.cookie-switch:checked:before {
  left: 23px;
  background: #fff6e2;
}
.cookie-category-label {
  font-size: 1.04rem;
  color: #00497A;
  font-weight: 600;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #E8E8E8;
  box-shadow: 0 -6px 32px 0 rgba(0,73,122,0.09);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 24px 20px 20px;
  animation: bannerEnter 0.27s cubic-bezier(.32,.41,.59,1);
}
@keyframes bannerEnter {
  0% { opacity:0; transform: translateY(54px); }
  100% { opacity:1; transform: none; }
}
.cookie-banner__text {
  flex: 1 1 218px;
  font-size: 1.04rem;
  color: #00497A;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  background: #E8E8E8;
  color: #00497A;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 16px;
  border: 2px solid #E8E8E8;
  padding: 10px 22px;
  margin-right: 2px;
  transition: background var(--transition-basic), color var(--transition-basic), border var(--transition-basic);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-accent);
}
.cookie-btn.reject {
  background: #fff;
  color: #00497A;
  border: 2px solid #E8E8E8;
}
.cookie-btn.settings {
  background: var(--color-bg-gray);
  color: #00497A;
  border: 2px solid #d9d9d9;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff !important;
  border: 2px solid var(--color-accent);
}

/* ==== GEOMETRIC ANGULAR FONTS ==== */
body, input, button, textarea {
  font-family: 'Arial', 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, .cta-primary {
  font-family: 'Montserrat', 'Arial', sans-serif;
}
h1, h2, h3 {
  text-transform: none;
  text-shadow: 1px 1px 0 #E8E8E8, 2px 2px 0 #F7B32B16;
}

/* ==== GEOMETRIC/STRUCTURED EFFECTS: DECORATIVE ANGLES ==== */
.section, .cta, .card, .testimonial-card {
  border-radius: 18px 70px 18px 16px;
}
.card {
  border-bottom: 6px solid var(--color-accent);
  border-left: 6px solid var(--color-primary);
}
.cta {
  border-bottom: 10px solid var(--color-accent);
  border-left: 6px solid #00345a;
}

/* ==== RESPONSIVE DESIGN = MOBILE-FIRST ==== */
@media (max-width: 1130px) {
  .container {
    max-width: 98vw;
  }
  .hero .container { flex-direction: column; }
}
@media (max-width: 930px) {
  header .container {
    gap: 10px;
  }
  footer .container {
    gap: 14px 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 12px;
  }
  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.30rem !important; }
  h3 { font-size: 1.02rem !important; }
  .section, .cta {
    padding: 20px 9px;
    margin-bottom: 34px;
    border-radius: 14px 40px 15px 9px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .card {
    padding: 18px 10px 16px 10px;
    min-width: 0;
    width: 100%;
  }
  .hero {
    margin-bottom: 30px;
    border-radius: 0 0 24px 24px / 0 0 17px 17px;
    min-height: 140px;
  }
  .hero .content-wrapper {
    padding: 19px 0 17px 0;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 15px 12px;
    font-size: 0.99rem;
    border-radius: 8px 1.5em 8px 1.5em;
  }
  .footer-contact {
    font-size: 0.89rem;
  }
  footer img {
    height: 27px;
    margin-right: 9px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.97rem;
    padding: 14px 7px 8px 8px;
  }
  .cookie-banner__actions {
    gap: 10px;
    width: 100%;
  }
}
@media (max-width: 680px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 10px 16px;
    margin-left: 5px;
  }
}
@media (max-width: 560px) {
  header nav,
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 370px) {
  .modal-content {
    padding: 11px 7px 11px 7px;
  }
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .cta, .testimonial-card {
  transition: box-shadow 0.2s cubic-bezier(.51,.26,.47,.86), border 0.19s;
}
.card:active,.cta:active {
  box-shadow: 0 1.5px 10px rgba(0,73,122,0.10);
}
.cta-primary:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
}
.cta-primary:active {
  background: #EEAA1C;
  color: #fff;
}
.mobile-menu.open
  { box-shadow: 6px 0 32px 0 rgba(0,73,122,0.13); }

/* ==== STRUCTURED ANGULARITY: GEOMETRIC BUTTONS etc ==== */
button, .cookie-btn, .cta-primary {
  border-radius: 45px 12px 37px 12px/32px 12px 32px 8px;
  box-shadow: 0 1.5px 8px 0 rgba(0,73,122,0.075);
}

/* ==== ACCESSIBILITY ==== */
a, button, input[type="submit"] {
  outline: none;
  -webkit-tap-highlight-color: #F7B32B44;
}
a:focus-visible, button:focus-visible,
input[type="search"]:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==== UTILITY & HELPERS ==== */
.hide { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* === SPECIAL TABLET NAVIGATION ==== */
@media (max-width: 1020px) {
  header nav {
    gap: 11px;
    font-size: 0.96rem;
  }
}

