/* ---------- Grundlagen ---------- */
:root {
  --navy: #031c48;
  --navy-light: #0d2e66;
  --navy-lighter: #17407f;
  --gold: #1d4f91;
  --gold-light: #7ba7de;
  --gold-dark: #123b6e;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1f2933;
  --text-muted: #52606d;
  --white: #ffffff;
  --border: #e2e6eb;
  --radius: 3px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--navy);
  color: #dbe2ea;
}
.section-dark h2 { color: var(--white); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 0.6em;
}
.section-dark .section-eyebrow { color: var(--gold-light); }

.section-lead {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  text-decoration: none;
}

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

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(16,35,61,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--navy);
}
.brand-text small {
  font-family: var(--sans);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }

.header-phone {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Language switch ---------- */
/* One shape at every language count and every width: a code-width trigger and a
   dropdown. The wrapper carries no border and does not clip, because the menu
   hangs outside it — an earlier version bordered the wrapper and set
   overflow:hidden, which cut the menu off at the trigger's edge and made it
   impossible to click. The border lives on the trigger instead. */
.lang-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
/* On the legal pages the switch is alone in the header beside the logo, so it
   has to push itself to the right edge. */
.lang-switch:last-child { margin-left: auto; }

.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__trigger:hover { background: var(--bg-alt); color: var(--text); }
/* Same fill as .btn-primary, so the open control reads as one of the site's
   own buttons. */
.lang-switch__trigger[aria-expanded="true"] { background: var(--gold); color: var(--white); }
.lang-switch__trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.lang-switch__caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  max-height: min(340px, 60vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16, 33, 63, 0.14);
}

/* display:flex on the menu overrides the hidden attribute, so without this the
   list hangs open under the header from the moment the page loads. */
.lang-switch__menu[hidden] { display: none; }

/* Each row is the language's own name in its own script, at reading size and
   not uppercased: "Русский" and "Português" are names, not abbreviations. */
.lang-switch__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__item:hover { background: var(--bg-alt); }
.lang-switch__item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lang-switch__item.is-active { background: var(--gold); color: var(--white); cursor: default; }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  color: var(--text);
  padding: 56px 0 96px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 460px; }
.hero-media {
  flex: 1 1 460px;
  align-self: stretch;
  border-radius: 4px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8em;
}
.hero h1 { color: var(--navy); }
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2em;
}
.hero-actions .btn {
  min-width: 260px;
  text-align: center;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  justify-content: center;
  padding: 20px 24px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
@media (max-width: 767px) {
  .trust-bar { display: none; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 3em;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.card h3 { margin-top: 0; margin-bottom: 0.4em; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

.disclaimer-note {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 720px;
}

/* ---------- About ---------- */
.about-logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 3.5em;
}

.about-block {
  display: flex;
  gap: 56px;
  align-items: center;
}
.about-block + .about-block {
  margin-top: 4em;
  padding-top: 4em;
  border-top: 1px solid var(--border);
}
.about-block.reverse { flex-direction: row-reverse; }
.about-block .about-media {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}
.about-block .about-content { flex: 1 1 auto; min-width: 0; }
.about-block .about-content h3 { margin-top: 0; }

.about-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--white);
  box-shadow: 0 8px 24px rgba(16,35,61,0.18);
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-lighter) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16,35,61,0.18);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reviews ---------- */
.reviews.section { padding: 56px 0; }

.reviews-list {
  max-width: 760px;
  margin-top: 2em;
}

.review { padding: 1.1em 0; }
.review:first-child { padding-top: 0; }
.review:last-child { padding-bottom: 0; }
.review + .review { border-top: 1px solid var(--border); }

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.7em;
}
.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 28, 72, 0.08);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.review-stars {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 2px;
}

.review-title {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 0.25em;
}
.review-area {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5em;
}
.review-text {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 0 0.5em;
}
.review-footer {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.reviews-more {
  display: inline-block;
  margin-top: 1.6em;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

@media (max-width: 760px) {
  .reviews.section { padding: 36px 0; }
  .reviews-list { margin-top: 1.5em; }
  .review { padding: 1em 0; }
  .review-avatar { width: 32px; height: 32px; font-size: 0.68rem; }
  .review-title { font-size: 1rem; }
  .review-text { font-size: 0.94rem; line-height: 1.5; }
  .reviews-more { margin-top: 1.3em; }
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.kontakt-list {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: grid;
  gap: 22px;
}
.kontakt-list strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.kontakt-list a { color: #dbe2ea; }
.kontakt-list a:hover { color: var(--gold-light); }

.kontakt-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 2.5em;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.kontakt-form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 34px;
}
.kontakt-form .section-eyebrow { color: var(--gold-dark); }
.kontakt-form h2 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.8em; }

.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-split .form-row { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.96rem;
  background: var(--bg);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 1px;
  border-color: var(--gold-dark);
  background: var(--white);
}
textarea { resize: vertical; }

.form-row-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-row-checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
}
.form-row-checkbox label {
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-note {
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
  color: var(--gold-dark);
}
.form-note.error { color: #b3422f; }

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}
.footer-nav a {
  color: var(--text);
  margin-left: 20px;
}
.footer-nav a:first-child { margin-left: 0; }

.footer-cookie-link {
  margin-left: 20px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  cursor: pointer;
}
.footer-cookie-link:hover { text-decoration: underline; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(16, 35, 61, 0.14);
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
}

.cookie-banner-heading {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5em;
}

.cookie-banner-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.cookie-banner-row[hidden] { display: none; }
.cookie-banner-text {
  flex: 1 1 420px;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-settings-copy { flex: 1 1 420px; }

.cookie-banner-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.cookie-settings-link {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--gold-dark);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-settings-link:hover { text-decoration: underline; }

.cookie-category {
  padding-bottom: 0.7em;
  margin-bottom: 0.7em;
  border-bottom: 1px solid var(--border);
}
.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.35em;
}
.cookie-category-name {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}
.cookie-category-status {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cookie-category-desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-settings-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    border-top: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(16, 35, 61, 0.18);
  }
  .cookie-banner-inner { max-width: none; padding: 18px 18px; }
  .cookie-banner-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-text,
  .cookie-banner-settings-copy { flex: auto; }
  .cookie-banner-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; }
  .cookie-settings-link { text-align: center; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 70px 0 100px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-page h1 { margin-bottom: 0.3em; }
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page ul { padding-left: 1.2em; }
.back-link { display: inline-block; margin-bottom: 2em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-block, .about-block.reverse {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-block .about-media { flex-basis: auto; width: 200px; }
  .about-portrait { width: 150px; height: 150px; font-size: 2.2rem; }
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(16,35,61,0.08);
  }
  .main-nav a { color: var(--text); }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-inner { gap: 14px; }
  .lang-switch { margin-left: auto; }
  .lang-switch__trigger { padding: 6px 9px; }
  .lang-switch__menu { min-width: 172px; }
  .form-row-split { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .hero { padding-top: 34px; padding-bottom: 0; }

  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-media { margin-top: 28px; }
  .hero-media img { min-height: 0; aspect-ratio: 4 / 3; }

  .hero h1 {
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.06;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
  }

  .card { padding: 18px 20px; }
  .card-grid { gap: 18px; }

  .about-block:not(.reverse) { gap: 36px; }
  .about-block:not(.reverse) .about-media {
    width: 82%;
    align-self: flex-start;
  }

  .about-logo {
    max-width: 210px;
    margin: 0 auto 1.75em;
  }
  #ueber-uns { padding-top: 36px; }
}
