/* IT-Service Fischer-Kassler ? Markenfarben aus Logo (Petrol / Navy / Cyan) */
:root {
  --navy: #0a2433;
  --teal: #1b3a4b;
  --accent: #2c5f7c;
  --cyan: #b0d0e0;
  --cyan-soft: #d8e8f0;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --text: #1a2228;
  --muted: #4a555c;
  --line: #c5d0cc;
  --ok: #1f6b4a;
  --danger: #9b2c2c;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(10, 36, 51, 0.12);
  --max: 1120px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 208, 204, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.15rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.site-nav .nav-cta:hover { background: var(--accent); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 12% 40%, rgba(176, 208, 224, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 88% 70%, rgba(44, 95, 124, 0.45), transparent 50%),
    linear-gradient(145deg, #051821 0%, #0a2433 42%, #1b3a4b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176, 208, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 208, 224, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  min-height: min(88vh, 760px);
  padding: 3.5rem 0 0;
}

.hero-copy {
  padding-bottom: 3.5rem;
  max-width: 36rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #fff; color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(176, 208, 224, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { background: var(--bg); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 0;
}

.hero-visual img {
  width: min(100%, 380px);
  height: min(100vw, 380px);
  max-width: 380px;
  max-height: 380px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-tight { padding: 3rem 0; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.section .lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 1px 0 rgba(10, 36, 51, 0.04);
}

.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.panel h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.panel p { margin: 0 0 0.85rem; color: var(--muted); }
.panel ul { margin: 0.35rem 0 1rem; padding-left: 1.15rem; color: var(--muted); }
.panel li { margin: 0.3rem 0; }
.panel strong { color: var(--text); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: min(100%, 380px);
  height: min(100vw, 380px);
  max-width: 380px;
  max-height: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 22%;
  justify-self: center;
}

.note {
  background: linear-gradient(135deg, var(--cyan-soft), #eef4f7);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.25rem;
  color: var(--teal);
}

.note h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.note p { margin: 0; }

/* Forms */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.contact-card h2,
.form-card h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0.75rem 0;
  color: var(--muted);
}

.contact-list a {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.form-grid {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  color: var(--navy);
  font-size: 0.98rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(44, 95, 124, 0.35);
  border-color: var(--accent);
}

textarea { min-height: 140px; resize: vertical; }

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.alert-ok { background: #e8f6ef; color: var(--ok); border: 1px solid #b7e0c9; }
.alert-err { background: #fdecec; color: var(--danger); border: 1px solid #f0c2c2; }

/* Legal pages */
.legal-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 2rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  border-bottom: 3px solid var(--navy);
  padding-bottom: 0.4rem;
  margin: 0 0 1rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  color: var(--accent);
}

.legal-page h3 {
  font-size: 1.05rem;
  color: var(--navy);
}

.legal-page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  text-align: left;
}

.legal-page th {
  background: var(--navy);
  color: #fff;
}

.legal-page tr:nth-child(even) td { background: #f4f7f6; }
.legal-page .meta { color: var(--muted); font-size: 0.95rem; }
.legal-page a { word-break: break-word; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; color: #fff; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin: 0.4rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(176, 208, 224, 0.2);
  padding-top: 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  display: none;
}

.cookie-banner.is-open { display: block; }

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Page intro */
.page-intro {
  background: linear-gradient(160deg, #0a2433, #1b3a4b);
  color: #fff;
  padding: 2.75rem 0 2.25rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40rem;
  font-size: 1.08rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.7s ease both;
  }
  .hero-visual img {
    animation: rise 0.9s 0.12s ease both;
  }
  .service {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .service:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(10, 36, 51, 0.1);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .form-wrap,
  .footer-grid,
  .grid-services {
    grid-template-columns: 1fr 1fr;
  }
  .grid-services { grid-template-columns: 1fr 1fr; }
  .hero-grid { min-height: auto; padding-top: 2.5rem; }
  .hero-visual img {
    width: min(100%, 340px);
    height: min(100%, 340px);
    max-width: 340px;
    max-height: 340px;
  }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .header-inner { position: relative; }
  .brand-text span { display: none; }

  .hero-grid,
  .split,
  .form-wrap,
  .footer-grid,
  .grid-services {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-copy {
    padding-bottom: 1rem;
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual img {
    width: min(78vw, 300px);
    height: min(78vw, 300px);
    max-width: 300px;
    max-height: 300px;
  }

  .section { padding: 3rem 0; }
  body { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .hero-brand img { width: 60px; height: 60px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}
