/* File: css/styles.css - Zentrales Stylesheet für Edelweiss Strategy GmbH Website */

/* CSS-Variablen */
:root {
  --color-bg: #f5f7fb;
  --color-bg-alt: #e7edf6;
  --color-surface: #ffffff;
  --color-border: #d2d8e3;
  --color-primary: #0b1f33;
  --color-primary-soft: #163552;
  --color-accent: #e0b65a;
  --color-text: #1b2433;
  --color-text-muted: #667193;
  --color-error: #c0392b;
  --shadow-soft: 0 14px 30px rgba(11, 31, 51, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --container-width: 1120px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary-soft);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

main {
  min-height: 60vh;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(11, 31, 51, 0.96), rgba(22, 53, 82, 0.94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 24, 40, 0.9);
  box-shadow: 0 14px 30px rgba(5, 10, 20, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e9f1fb);
  border: 1px solid rgba(210, 216, 227, 0.95);
  box-shadow: 0 12px 28px rgba(2, 10, 22, 0.65);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(189, 205, 228, 0.6);
}

.logo-mark svg {
  width: 74%;
  height: 74%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: rgba(230, 236, 247, 0.8);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  color: rgba(224, 231, 245, 0.8);
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-soft));
  transition: width 0.18s ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  width: 100%;
}

.site-nav a.is-active {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(210, 216, 227, 0.9);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  margin: 0 auto;
}

/* Hero Startseite */
.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.8rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-intro {
  font-size: 0.98rem;
  max-width: 35rem;
  color: var(--color-text);
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 260px;
  max-height: 420px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Page Hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: center;
}

.page-kicker {
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  margin: 0 0 0.6rem;
}

.page-intro {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 35rem;
}

.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 230px;
  max-height: 380px;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out, color 0.1s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(11, 31, 51, 0.42);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid rgba(210, 216, 227, 0.9);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f7f8fb;
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* Cards & Content */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 12px 26px rgba(11, 31, 51, 0.06);
  border: 1px solid rgba(210, 216, 227, 0.9);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.trust-strip {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.trust-strip a {
  font-weight: 500;
}

/* Services Page */
.service-block h2 {
  font-size: 1.3rem;
  margin-top: 0;
}

.service-block + .service-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(210, 216, 227, 0.7);
}

.service-block p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text);
}

.compliance-note {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 0.7rem;
}

/* Kontaktseite */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 2.25rem;
}

.contact-address {
  font-style: normal;
  margin-bottom: 1rem;
}

.link-map {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.contact-alt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 12px 26px rgba(11, 31, 51, 0.07);
  border: 1px solid rgba(210, 216, 227, 0.9);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
}

.form-field textarea {
  resize: vertical;
}

.form-field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.form-field-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
}

.form-field-checkbox label {
  margin: 0;
  font-weight: 400;
}

.form-error {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--color-error);
  min-height: 1.1em;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.is-invalid {
  border-color: var(--color-error);
}

/* Legal Text Pages */
.legal-text h1 {
  font-size: 1.7rem;
}

.legal-text h2 {
  font-size: 1.15rem;
  margin-top: 1.8rem;
}

.legal-text p,
.legal-text li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-text ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2.2rem;
  border-top: 1px solid rgba(210, 216, 227, 0.9);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.footer-col p {
  margin: 0.15rem 0;
}

.footer-note {
  max-width: 520px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  margin: 0 auto 1rem;
  max-width: var(--container-width);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.25);
  padding: 1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(210, 216, 227, 0.9);
  font-size: 0.9rem;
}

.cookie-banner-inner p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--color-text);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 960px) {
  .hero-grid,
  .page-hero-inner,
  .contact-grid,
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media,
  .page-hero-media {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(6, 14, 25, 0.96);
    border-bottom: 1px solid rgba(224, 231, 245, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 0.8rem;
  }

  .site-nav li {
    padding: 0.2rem 0;
  }

  .hero,
  .page-hero {
    padding-top: 2.6rem;
  }

  .cookie-banner-inner {
    margin: 0.4rem;
    border-radius: 14px;
  }
}


