/* isny-spendenlauf.de – WSV Isny Firmen-Spendenlauf */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #b7a655;
  --gold-light: #d7c162;
  --gold-dark: #7a6a1e;
  --blue: #003e6f;
  --ink: #002b4f;
  --muted: #4a5468;
  --gutter: clamp(16px, 4vw, 32px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Inter", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 17px;
  line-height: 27px;
  color: var(--ink);
}

img { display: block; max-width: 100%; }

a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Dunkle Flächen (Header, Footer) */
.dk a { color: #fff; }
.dk a:hover { color: var(--gold-light); }
.dk a:focus-visible { outline-color: var(--gold-light); }

/* ---------- Startseite ---------- */

.page-home { background: var(--gold); overflow-x: hidden; }
.page-home a { color: var(--ink); }
.page-home a:hover { color: #fff; }
.page-home .dk a { color: #fff; }
.page-home .dk a:hover { color: var(--gold-light); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.claim {
  margin: 0;
  padding-top: 28px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero {
  flex-grow: 1;
  padding-top: 40px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero__text {
  flex: 999 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Blaue Balken laufen bis an den linken Rand */
.bar {
  background: var(--blue);
  color: #fff;
  margin-left: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  max-width: calc(100% + var(--gutter));
}

.bar--title {
  padding-top: 14px;
  padding-right: 28px;
  padding-bottom: 10px;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}
.bar--sub {
  padding-top: 10px;
  padding-right: var(--gutter);
  padding-bottom: 6px;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1;
}
.bar--date {
  padding-top: 6px;
  padding-right: 40px;
  padding-bottom: 14px;
  font-size: clamp(64px, 13vw, 190px);
  line-height: 0.92;
  white-space: nowrap;
}

.tagline {
  margin: 32px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.contact {
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 26px;
}
.contact a { font-weight: 600; overflow-wrap: anywhere; }

.hero__logo {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}
.hero__logo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
}
@media (max-width: 700px) {
  .hero { gap: 32px; padding-bottom: 56px; }
  .hero__logo img { max-width: 260px; }
}

.photo {
  margin: 0;
  position: relative;
  background: var(--blue);
}
.photo img {
  width: 100%;
  height: clamp(280px, 42vw, 640px);
  object-fit: cover;
  object-position: 50% 55%;
}
.photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  background: var(--blue);
  color: #fff;
  padding: 10px var(--gutter);
  font-size: 14px;
  line-height: 20px;
}
.photo figcaption .display { font-size: 20px; }
.photo figcaption .credit { color: #d6e2ee; }
@media (max-width: 560px) {
  .photo figcaption { position: static; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--blue); color: #fff; }
.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  line-height: 20px;
}
.site-footer__logo img { width: 150px; height: 90px; }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.legal-nav [aria-current="page"] {
  text-decoration: none;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 2px;
}
.legal-nav__copy { color: #d6e2ee; }

/* ---------- Rechtliche Seiten ---------- */

.page-legal { background: #fff; }
.page-legal a { color: var(--blue); }
.page-legal a:hover { color: var(--gold-dark); }
.page-legal .dk a { color: #fff; }
.page-legal .dk a:hover { color: var(--gold-light); }

.site-header { background: var(--blue); }
.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.page-legal .site-header .brand {
  text-decoration: none;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1;
  color: #fff;
}
.page-legal .site-header .brand span { color: var(--gold-light); }
.page-legal .site-header .brand:hover { color: #fff; opacity: 0.9; }
.back-link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}

.legal {
  flex-grow: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--gutter) clamp(56px, 10vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.legal__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 4px solid var(--gold);
  padding-bottom: 32px;
}
.legal h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--blue);
  hyphens: manual;
  overflow-wrap: break-word;
}
.legal__intro {
  margin: 0;
  font-size: 19px;
  line-height: 28px;
  color: var(--muted);
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--blue);
}
.legal p { margin: 0; }
.legal ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal a { overflow-wrap: anywhere; }
