/* ==========================================================
   Lebenslauf am Klopeiner See – Cassiopeia user.css
   Place at: media/templates/site/cassiopeia/css/user.css
   (or in a Cassiopeia child template so updates don't overwrite it)
   ========================================================== */

/* Self-hosted fonts (no Google CDN → DSGVO-safe). Upload the woff2 files
   to media/templates/site/cassiopeia/fonts/ or drop this block to use system fonts. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-v26-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v13-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Palette: lake turquoise + alpine evening blue ---------- */
:root {
  --lake-deep:   #0b3d5c;
  --lake:        #0f7c9c;
  --lake-light:  #3cc4d6;
  --sun:         #ffb547;
  --sand:        #f6f3ec;
  --ink:         #1d2b36;

  --cassiopeia-color-primary: var(--lake-deep);
  --cassiopeia-color-link:    var(--lake);
  --cassiopeia-color-hover:   var(--lake-deep);
  --cassiopeia-font-family-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cassiopeia-font-family-headings: "Montserrat", system-ui, sans-serif;
  --cassiopeia-font-weight-headings: 700;
}

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--cassiopeia-font-family-body);
  line-height: 1.65;
}

/* ---------- Header: gradient "lake" with wave edge ---------- */
.container-header {
  position: relative;
  background: linear-gradient(135deg, var(--lake-deep) 0%, var(--lake) 55%, var(--lake-light) 100%);
  background-image:
    linear-gradient(135deg, rgba(11,61,92,.92) 0%, rgba(15,124,156,.85) 55%, rgba(60,196,214,.80) 100%);
    /* Optional photo of the lake behind the gradient:
       , url("../../../../images/klopeinersee.jpg") center/cover; */
  padding-bottom: 4rem;
  box-shadow: none;
}
.container-header::after {               /* wave */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--sand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C240 60 480 0 720 30 S1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C240 60 480 0 720 30 S1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}

.container-header .navbar-brand { padding: 2.5rem 0 1rem; }
.container-header .brand-logo,
.container-header .brand-logo:hover {
  font-family: var(--cassiopeia-font-family-headings);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* ---------- Content card ---------- */
.site-grid { margin-top: 1rem; }

.blog-featured .blog-item,
.com-content-article {
  background: #fff;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 10px 40px -12px rgba(11,61,92,.25);
  animation: rise .6s ease-out both;
}

h1, h2, h3, .item-title {
  font-family: var(--cassiopeia-font-family-headings);
  color: var(--lake-deep);
  letter-spacing: -.01em;
}
.item-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.item-title::after {                     /* accent underline */
  content: "";
  display: block;
  width: 72px; height: 5px;
  margin-top: .75rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sun), var(--lake-light));
}

/* Highlight the race date: wrap it in the article as
   <p class="race-date">23. Mai 2027</p>                     */
.race-date {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--cassiopeia-font-family-headings);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px -6px rgba(255,181,71,.7);
}

/* ---------- Links & buttons ---------- */
a { transition: color .2s; }
.btn-primary {
  background: var(--lake);
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--lake-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(11,61,92,.6);
}

/* ---------- Footer ---------- */
.container-footer {
  background: var(--lake-deep);
  margin-top: 4rem;
}
.container-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.container-footer a:hover { color: var(--sun); }
.container-footer ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
