/*
 * Shared visual system for Schulferienklar static pages.
 * Mirrors the white, information-led home design.
 */

:root {
  color: #172033;
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body.static-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #172033;
  background: #ffffff;
  line-height: 1.65;
}

a {
  color: #176f64;
  font-weight: 750;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #115d54;
}

main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.static-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid #dfe5e8;
}

.static-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #172033;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.static-brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #176f64;
  font-weight: 900;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #aacbc5;
  border-radius: 8px;
  padding: 8px 12px;
  color: #17675d;
  background: #f1f8f6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.back:hover {
  border-color: #77a9a1;
  background: #e9f5f2;
}

.card {
  margin-top: 28px;
  border: 1px solid #d8e0e3;
  border-top: 4px solid #176f64;
  border-radius: 10px;
  padding: clamp(24px, 5vw, 42px);
  background: #ffffff;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #176f64;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

p,
li {
  color: #536171;
}

p {
  font-size: 1rem;
}

.hero-text {
  max-width: 760px;
  color: #465565;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  line-height: 1.62;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

code {
  border-radius: 5px;
  padding: 2px 6px;
  color: #243344;
  background: #f2f4f5;
}

.note {
  margin-top: 24px;
  border: 1px solid #bdd8d3;
  border-left: 4px solid #176f64;
  border-radius: 8px;
  padding: 15px 17px;
  color: #465565;
  background: #f4faf8;
}

.note strong {
  color: #172033;
}

.muted {
  color: #697581;
}

.button-row,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #176f64;
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffffff;
  background: #176f64;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
}

.button:hover {
  color: #ffffff;
  background: #115d54;
}

.button.secondary {
  border-color: #aacbc5;
  color: #17675d;
  background: #f1f8f6;
}

.button.secondary:hover {
  color: #115d54;
  background: #e9f5f2;
}

.info-grid,
.mode-grid,
.city-grid,
.holiday-guide-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-grid,
.city-grid,
.holiday-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-box,
.mode-card,
.city-grid a,
.holiday-guide-grid article,
.question {
  border: 1px solid #dce3e5;
  border-radius: 8px;
  padding: 16px;
  background: #f7f8f8;
}

.city-grid a {
  text-decoration: none;
}

.info-box strong,
.mode-card strong,
.city-grid strong,
.holiday-guide-grid strong {
  display: block;
  color: #172033;
}

.info-box span,
.mode-card span,
.city-grid span,
.holiday-guide-grid span {
  display: block;
  margin-top: 5px;
  color: #5d6a78;
}

.question-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.question {
  border-left: 4px solid #176f64;
  color: #172033;
  background: #f4faf8;
  font-weight: 800;
}

.contact-details {
  color: #536171;
}

.static-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid #dfe5e8;
  color: #697581;
  font-size: 0.9rem;
}

.static-footer a {
  color: #5f6d7a;
  text-decoration: none;
}

.static-footer a:hover {
  color: #176f64;
  text-decoration: underline;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 900px);
    padding-top: 14px;
  }

  .static-header {
    gap: 12px;
    padding-bottom: 14px;
  }

  .static-brand {
    font-size: 0.96rem;
  }

  .static-brand-mark {
    width: 34px;
    height: 34px;
  }

  .back {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .card {
    margin-top: 20px;
    padding: 22px 18px;
    border-radius: 9px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  h2 {
    margin-top: 2rem;
  }

  .info-grid,
  .mode-grid,
  .city-grid,
  .holiday-guide-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  main {
    width: min(100% - 22px, 900px);
  }

  .static-brand span:last-child {
    display: none;
  }
}

/* Germany Travel Checker redirect page */

.germany-travel-checker-page .static-brand {
  flex: 1 1 auto;
}

.germany-travel-checker-page .back {
  flex: 0 0 auto;
  white-space: nowrap;
}

.gtc-header-link-short {
  display: none;
}

@media (max-width: 760px) {
  .germany-travel-checker-page .back {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .gtc-header-link-full {
    display: none;
  }

  .gtc-header-link-short {
    display: inline;
  }
}

