@import url("fonts.css");

/* ============================================================
   Grim Innovation — Design System
   Farben aus dem Original (Jimdo colorPalette)
   ============================================================ */
:root {
  --navy:      #142b57;  /* MainColor */
  --navy-2:    #424f8f;  /* Shade2    */
  --greige:    #d1d3ca;  /* Shade1    */
  --taupe:     #a69891;  /* SecondaryColor */
  --white:     #ffffff;
  --ink:       #142b57;
  --muted:     #4a5568;
  --radius:    25px;      /* ovale Buttons/Cards wie Original */
  --maxw:      1180px;
  --nav-h:     76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Mukta", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--greige { background: var(--greige); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  font-family: "Mukta", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary   { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); }
.btn--light     { background: var(--white); color: var(--navy); }
.btn--outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.section--navy .btn--outline { color: var(--white); border-color: var(--white); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  display: flex; align-items: center;
}
.nav {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: "Playfair Display", serif; font-weight: 900;
  font-size: 1.4rem; color: var(--white); text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--white); text-decoration: none; font-weight: 400; font-size: 1rem;
  opacity: .9; transition: opacity .15s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { margin-left: 4px; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle-label {
    display: block; cursor: pointer; width: 30px; height: 22px; position: relative;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--white); transition: .25s;
  }
  .nav-toggle-label span { top: 10px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after  { top: 8px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; background: var(--navy);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-toggle:checked ~ .nav-links { max-height: 60vh; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after  { transform: rotate(-45deg); top: 0; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero h1 { color: var(--white); }
.hero .kicker { color: var(--taupe); font-family: "Playfair Display", serif; font-style: italic; font-weight: 700; font-size: 1.4rem; margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); width: 100%; object-fit: cover; }
.hero--compact .container { grid-template-columns: 1fr; text-align: center; }
.hero--compact .hero-img { display: none; }
@media (max-width: 800px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-img { order: -1; }
}

/* ============================================================
   Feature-Karten
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 10px 30px rgba(20,43,87,.08); border: 1px solid rgba(20,43,87,.06);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   Split (Bild + Text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 16px 40px rgba(20,43,87,.15); }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split-media { order: 0; }
}

/* ============================================================
   Portfolio-Galerie
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; box-shadow: 0 10px 26px rgba(20,43,87,.12); transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ============================================================
   Kontaktformular
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 13px 16px;
  border: 1.5px solid var(--greige); border-radius: 14px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy-2); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){ .form .row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-info p { margin: 0 0 .35rem; }
.contact-info .label { color: var(--taupe); font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin-top: 1.2rem; }

/* ============================================================
   Rechtstexte (Impressum / Datenschutz)
   ============================================================ */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 1em; }
.legal h3 { margin-top: 1.6em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal a { word-break: break-word; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-footer .brand { display: block; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
