/* ==========================================================================
   Kevin-S GmbH – Design-Tokens & Basis-Styles
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Maritime Palette: Tiefsee-Navy, Steel-Teal, warmes Messing als Akzent */
  --navy-900: #081b2c;
  --navy-800: #0d2a42;
  --navy-700: #133a59;
  --navy-600: #1b4d73;
  --teal-600: #1c7a94;
  --teal-500: #2a97b3;
  --teal-100: #e2f1f4;
  --brass-500: #c17f3a;
  --brass-600: #a86a2c;
  --sand-50: #f7f4ee;
  --sand-100: #efe9db;
  --white: #ffffff;
  --ink-900: #142430;
  --ink-600: #455662;
  --ink-400: #7c8b96;
  --line: #dde3e2;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --shadow-sm: 0 2px 10px rgba(8, 27, 44, 0.08);
  --shadow-md: 0 12px 32px rgba(8, 27, 44, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); color: var(--ink-600); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: var(--space-1);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--brass-500); display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.18s ease;
}
.btn-primary { background: var(--brass-500); color: var(--white); }
.btn-primary:hover { background: var(--brass-600); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-ghost { border-color: var(--navy-700); color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-700); color: var(--white); }

/* ==== Header / Nav ==== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 27, 44, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 0.75em; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.main-nav a {
  color: rgba(255,255,255,0.82); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  padding: 0.4em 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); border-color: var(--brass-500); }
.lang-switch { display: flex; gap: 0.4em; }
.lang-switch a {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.25em 0.7em;
}
.lang-switch a.active { color: var(--navy-900); background: var(--white); border-color: var(--white); }
.nav-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

/* ==== Hero ==== */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%);
  padding: var(--space-6) 0 var(--space-5);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: var(--sand-50);
  clip-path: polygon(0 60%, 5% 55%, 12% 62%, 20% 52%, 30% 63%, 40% 50%, 50% 62%, 60% 51%, 70% 63%, 80% 53%, 90% 62%, 100% 55%, 100% 100%, 0 100%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 6px solid rgba(255,255,255,0.12);
}
.hero-video-frame { aspect-ratio: 16/10; background: var(--navy-800); }
.hero-video-frame iframe, .hero-video-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: var(--navy-800); }
.video-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75em; color: rgba(255,255,255,0.65); text-align: center; padding: var(--space-3);
  border: 2px dashed rgba(255,255,255,0.25); border-radius: var(--radius-lg);
}
.video-placeholder svg { width: 46px; height: 46px; opacity: 0.7; }
.video-placeholder span { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ==== Sections ==== */
section.section { padding: var(--space-5) 0; }
section.section.tight { padding: var(--space-4) 0; }
.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.75); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius-md); padding: var(--space-3);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--teal-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--teal-600); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.quote {
  border-left: 3px solid var(--brass-500); padding-left: var(--space-3); font-family: var(--font-head);
  font-size: 1.2rem; color: var(--navy-800); font-style: normal; margin: var(--space-3) 0;
}

/* Stats */
.stats { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-3); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--white); }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* Ships */
.ship-card { overflow: hidden; padding: 0; }
.ship-card .ship-photo { aspect-ratio: 16/10; overflow: hidden; }
.ship-card .ship-photo img { width: 100%; height: 100%; object-fit: cover; }
.ship-card .ship-body { padding: var(--space-3); }
.ship-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25em 0.7em; border-radius: 999px; margin-bottom: 0.6em;
}
.ship-tag.active { background: var(--teal-100); color: var(--teal-600); }
.ship-tag.retired { background: var(--sand-100); color: var(--ink-400); }
.ship-specs { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em 1em; font-size: 0.88rem; }
.ship-specs li span { display: block; color: var(--ink-400); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ship-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); margin-top: var(--space-2); }
.ship-gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* News */
.news-list { display: grid; gap: var(--space-3); }
.news-card {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--space-3); background: var(--white);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.news-card .news-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-100); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: var(--space-3) var(--space-3) var(--space-3) 0; }
.news-card.no-image .news-body { padding-left: var(--space-3); }
.news-date { font-family: var(--font-head); font-size: 0.78rem; color: var(--teal-600); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.news-detail-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-3) 0; }
.news-detail-images.single { grid-template-columns: 1fr; max-width: 640px; }
.news-detail-images img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-empty { padding: var(--space-4); text-align: center; color: var(--ink-400); background: var(--white); border-radius: var(--radius-md); border: 1px dashed var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.contact-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-2); }
.contact-list li { display: flex; gap: 0.8em; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; stroke: var(--teal-600); flex-shrink: 0; margin-top: 2px; }
form.form-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; padding: 0.75em 0.9em; border-radius: var(--radius-sm); border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--sand-50);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal-500); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 0.9em 1.1em; border-radius: var(--radius-sm); margin-bottom: var(--space-3); font-size: 0.92rem; }
.alert-success { background: #e5f4ea; color: #1f6b3c; border: 1px solid #bfe3cc; }
.alert-error { background: #fbe9e7; color: #a3372a; border: 1px solid #f3c6bf; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.site-footer h4 { color: var(--white); font-size: 0.95rem; }
.site-footer a { color: rgba(255,255,255,0.68); }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 0.7em; margin-bottom: var(--space-2); }
.footer-brand img { height: 40px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em; font-size: 0.82rem;
}

/* Page intro (inner pages) */
.page-intro { background: var(--navy-900); color: var(--white); padding: var(--space-5) 0 var(--space-4); }
.page-intro .eyebrow { color: var(--brass-500); }
.page-intro .eyebrow::before { background: var(--teal-500); }
.page-intro h1 { color: var(--white); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-2); }
.breadcrumb a { color: rgba(255,255,255,0.6); }

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-card { grid-template-columns: 1fr; }
  .news-card .news-body { padding: var(--space-3); }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--navy-900); flex-direction: column;
    align-items: flex-start; padding: var(--space-3); transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav ul li a { display: block; padding: 1em 0; }
  .lang-switch { margin-top: var(--space-3); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ship-gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: var(--space-3); }
}
