/*
Theme Name: ISD Website Prototyp
Theme URI: https://isd-deutschland.de/
Author: ISD - Integrationsservice Deutschland GmbH
Description: Onepage-Prototyp fuer ISD - Integrationsservice Deutschland GmbH.
Version: 1.0.5
Text Domain: isd-website-prototyp
*/

:root {
  --red: #e60014;
  --dark-red: #bd1622;
  --yellow: #f8b133;
  --ink: #1d1d1b;
  --gray: #575756;
  --line: #e7e8ea;
  --paper: #ffffff;
  --page-tint: #fff4f4;
  --soft: #f6f7f8;
  --soft-red: #fff2f3;
  --max: 1180px;
  --shadow: 0 18px 60px rgba(29, 29, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-tint);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.official-note {
  padding: 0.45rem 1rem;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.86rem;
  text-align: center;
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 200px;
  text-decoration: none;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--gray);
  font-weight: 700;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--red);
}

.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.76rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta {
  color: #ffffff;
  background: var(--red);
}

.button.primary {
  color: #ffffff;
  background: var(--red);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--dark-red);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.button.small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}

.section,
.section-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-band {
  padding: 74px 0 80px;
}

.hero {
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lead {
  max-width: 690px;
  margin: 1.55rem 0 0;
  color: var(--gray);
  font-size: 1.17rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-contact-card {
  width: min(100%, 560px);
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-section h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1.14;
}

.contact-section p {
  color: var(--gray);
}

.link-card span,
.proof-item span {
  color: var(--gray);
  font-size: 0.9rem;
}

.link-card strong,
.proof-item strong {
  display: block;
  margin-top: 0.3rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2.25rem;
}

.section-heading p,
.split-section p,
.contact-intro p {
  color: var(--gray);
  font-size: 1.05rem;
}

.narrow {
  max-width: 760px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillar {
  min-height: 260px;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.number {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--red);
  font-weight: 900;
}

.pillar p {
  margin: 1rem 0 0;
  color: var(--gray);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.copy-stack {
  display: grid;
  gap: 1rem;
}

.copy-stack p {
  margin: 0;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-item {
  min-height: 145px;
  padding: 1.3rem;
  background: var(--soft);
}

.info-section {
  background: transparent;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  min-height: 150px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: #ffffff;
}

.link-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.help-section {
  padding-top: 76px;
}

.help-intro {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: center;
}

.help-intro h2 {
  font-size: clamp(2.65rem, 5.2vw, 4.55rem);
  line-height: 0.98;
}

.help-intro p:not(.eyebrow) {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--gray);
  font-size: 1rem;
}

.help-illustration {
  width: min(260px, 100%);
  justify-self: end;
}

.help-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.help-illustration circle {
  fill: rgba(230, 0, 20, 0.07);
}

.help-illustration path {
  fill: none;
  stroke: rgba(29, 29, 27, 0.72);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-illustration path:last-child {
  fill: var(--red);
  stroke: var(--red);
}

.help-table {
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(29, 29, 27, 0.12);
}

.help-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 180px minmax(0, 1fr) minmax(190px, 0.55fr);
  gap: 1.15rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(29, 29, 27, 0.1);
}

.help-row:last-child {
  border-bottom: 0;
}

.help-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: var(--soft-red);
}

.help-icon svg,
.emergency-note svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-topic {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.help-detail h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.help-detail p {
  margin: 0.25rem 0 0;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.35;
}

.help-target strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.help-target a {
  display: inline-block;
  margin-top: 0.18rem;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.help-target a::after {
  content: " \2192";
}

.help-target a:hover {
  color: var(--dark-red);
  text-decoration: underline;
}

.emergency-note {
  width: fit-content;
  max-width: min(720px, 100%);
  margin: 1.5rem auto 0;
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 12px 34px rgba(29, 29, 27, 0.18);
}

.emergency-note span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emergency-note p {
  margin: 0;
  color: #ffffff;
  font-size: 0.93rem;
}

.contact-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-backup {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.contact-email {
  margin: 1.2rem 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
}

.contact-email a,
.contact-backup a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.contact-email a:hover,
.contact-backup a:hover {
  text-decoration: underline;
}

.footer {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer img {
  width: 190px;
  display: block;
}

.footer p {
  margin: 0.6rem 0 0;
  color: var(--gray);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.privacy-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 360px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}

.privacy-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #111111;
  font-size: 0.98rem;
}

.privacy-notice p {
  margin: 0;
  color: #555555;
  font-size: 0.9rem;
  line-height: 1.45;
}

.privacy-notice button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #ffffff;
  background: #e30613;
  font-weight: 700;
  cursor: pointer;
}

.privacy-notice button:hover {
  background: #c9000b;
}

.privacy-notice.is-hidden {
  display: none;
}

.legal-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  border: 0;
  border-radius: 8px;
  padding: 2rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}

.legal-dialog::backdrop {
  background: rgba(29, 29, 27, 0.44);
}

.legal-dialog h2 {
  margin-bottom: 1rem;
}

.legal-dialog h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1rem;
  line-height: 1.25;
}

.legal-dialog p {
  color: var(--gray);
}

.legal-dialog ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--gray);
}

.legal-dialog li {
  margin: 0.25rem 0;
}

.legal-dialog a {
  color: var(--red);
  font-weight: 700;
}

.close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav {
    min-height: auto;
    padding: 0.9rem 0;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 170px;
  }

  .brand img {
    width: 180px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 32px;
  }

  .pillars,
  .proof-band,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .help-intro {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 1rem;
  }

  .help-row {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .help-icon {
    grid-row: 1 / span 3;
  }

  .help-topic,
  .help-detail,
  .help-target {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .official-note {
    text-align: left;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.94rem;
  }

  .nav-cta {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-band {
    padding: 54px 0 64px;
  }

  .help-intro {
    grid-template-columns: 1fr;
  }

  .help-illustration {
    width: 150px;
    justify-self: start;
  }

  .help-row {
    padding: 1rem;
    gap: 0.35rem 0.9rem;
  }

  .help-topic {
    padding-top: 0.15rem;
  }

  .emergency-note {
    width: 100%;
    align-items: flex-start;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .privacy-notice {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
    align-items: flex-start;
  }
}
