/*
Theme Name: Kurzraus
Description: Custom theme for Kurzraus — clean maritime aesthetic
Version: 1.0.0
Author: bky
Text Domain: kurzraus
*/

/* ------------------------------------------------------------------ */
/* 0. Google Fonts + Reset                                             */
/* ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Playfair+Display:wght@700;900&display=swap');

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

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  --navy:    #0f1b2d;
  --navy-mid:#1e3050;
  --ocean:   #2563a8;
  --foam:    #e8f1fb;
  --sand:    #f5f3ee;
  --white:   #ffffff;
  --text:    #1a1a2a;
  --muted:   #6b7280;
  --accent:  #3b7dd8;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  --container: 1160px;
  --radius:    4px;
  --transition: 0.25s ease;
}

/* ------------------------------------------------------------------ */
/* 2. Base                                                             */
/* ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ------------------------------------------------------------------ */
/* 3. Utility                                                          */
/* ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-dark {
  color: var(--white);
  border-color: var(--white);
}
.btn-dark:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ------------------------------------------------------------------ */
/* 4. Header / Navigation                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--navy);
  padding: 0.9rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.site-logo span {
  color: var(--accent);
}

/* Primary nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.primary-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 2px;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--transition);
}

.primary-nav a:hover {
  color: var(--white);
}
.primary-nav a:hover::after { width: 100%; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* ------------------------------------------------------------------ */
/* 5. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,27,45,0.3) 0%,
    rgba(15,27,45,0.55) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: var(--space-md);
  max-width: 820px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0.75;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* 6. Intro band                                                       */
/* ------------------------------------------------------------------ */
.intro-band {
  background: var(--sand);
  padding: var(--space-xl) 0;
  text-align: center;
}

.intro-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.intro-band p {
  max-width: 580px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ */
/* 7. Feature grid (latest posts / cards)                             */
/* ------------------------------------------------------------------ */
.features {
  padding: var(--space-xl) 0;
}

.features-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e5e7eb;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,27,45,0.1);
}

.post-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--foam);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.post-card-title a:hover { color: var(--ocean); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.post-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

/* ------------------------------------------------------------------ */
/* 8. Full-bleed CTA band                                             */
/* ------------------------------------------------------------------ */
.cta-band {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--navy-mid);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 15 30 30 Q45 45 60 30' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3C/svg%3E") repeat;
  background-size: 60px 60px;
}

.cta-band .container { position: relative; }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.cta-band p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------------ */
/* 9. Footer                                                           */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* ------------------------------------------------------------------ */
/* 10. Single post                                                     */
/* ------------------------------------------------------------------ */
.post-hero {
  height: 55vh;
  min-height: 380px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,27,45,0.8) 0%, transparent 60%);
}

.post-hero-content {
  position: relative;
  color: var(--white);
}

.post-content-wrap {
  max-width: 740px;
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}

.post-content-wrap h1,
.post-content-wrap h2,
.post-content-wrap h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75em;
  margin-top: 1.5em;
}

.post-content-wrap h1 { font-size: 2.2rem; }
.post-content-wrap h2 { font-size: 1.7rem; }
.post-content-wrap h3 { font-size: 1.3rem; }

.post-content-wrap p { margin-bottom: 1.4em; color: var(--text); }

.post-content-wrap img {
  width: 100%;
  margin-block: 2rem;
}

/* ------------------------------------------------------------------ */
/* 11. Activities section                                             */
/* ------------------------------------------------------------------ */
.activities {
  padding: var(--space-xl) 0;
  background: var(--sand);
}

.activities-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.activities-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.activities-lead {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.activity-card {
  background: var(--white);
  padding: 2rem 1.7rem;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.activity-card:hover {
  border-bottom-color: var(--ocean);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,27,45,0.09);
}

.activity-icon {
  width: 44px;
  height: 44px;
  color: var(--ocean);
  margin-bottom: 1.3rem;
}

.activity-icon svg {
  width: 100%;
  height: 100%;
}

.activity-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.activity-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.activity-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.activity-tags li {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--foam);
  padding: 0.25rem 0.65rem;
}

/* ------------------------------------------------------------------ */
/* 12. Split section (image + text)                                   */
/* ------------------------------------------------------------------ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.split-image {
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.split-section:hover .split-image img {
  transform: scale(1.04);
}

.split-content {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  gap: 1.1rem;
}

.split-content .section-label {
  color: rgba(255,255,255,0.5);
}

.split-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
}

.split-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.split-content .btn-outline {
  align-self: flex-start;
  color: var(--white);
  border-color: var(--white);
  margin-top: 0.5rem;
}

.split-content .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ------------------------------------------------------------------ */
/* 13. How it works                                                    */
/* ------------------------------------------------------------------ */
.how-it-works {
  padding: var(--space-xl) 0;
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--foam);
  line-height: 1;
  margin-bottom: -0.8rem;
  user-select: none;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/* 14. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }

  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 340px; }
  .split-content { padding: var(--space-lg) var(--space-md); }

  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .primary-nav.open { display: block; }
  .nav-toggle { display: flex; }

  .primary-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.4rem 0;
  }

  .activity-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }

  .features-header { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
