/* Startseite (DE und IT) */
:root {
  --bg: #ffffff;
  --ink: #161616;
  --muted: #6b6a66;
  --line: #d9d7d1;
  --panel: #f4f3ef;
  --select: #e3dfd5; /* Textmarkierung: warmes Grau statt Browser-Blau */
  --sans: "Geist", system-ui, sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1rem, 5vw, 4rem);
  --space: clamp(3rem, 7vw, 6rem); /* Luft über und unter jeder Trennlinie */
}
/* Ab 1440px wächst die ganze Seite proportional mit (16px → max. 22px bei 2560px) */
html {
  font-size: clamp(100%, 0.536vw + 51.8%, 137.5%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--select);
}
/* Auf schwarzen Flächen ein dunkles Grau, damit die helle Schrift lesbar bleibt */
.btn.primary::selection,
.tile[aria-expanded="true"] ::selection {
  background: #4a4843;
  color: var(--bg);
}

/* Fokus: eckiger Strich mit Abstand, wie die Linien im Logo – nur bei Tastaturbedienung */
:focus-visible {
  outline: 0.125rem solid var(--ink);
  outline-offset: 0.25rem;
}
/* Kontaktzeilen: statt Rahmen wird die Trennlinie zum kräftigen Strich */
.contact a:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.contact a:focus-visible .v {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

/* Scrollbar: Haarlinie als Schiene, feiner Strich als Griff, eckige Enden wie im Logo */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: var(--bg);
}
::-webkit-scrollbar-track {
  background: linear-gradient(
    90deg,
    transparent 4px,
    var(--line) 4px 5px,
    transparent 5px
  );
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    transparent 4px,
    var(--ink) 4px 6px,
    transparent 6px
  );
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    90deg,
    transparent 3px,
    var(--ink) 3px 7px,
    transparent 7px
  );
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2rem, 6vw, 5.5rem) var(--gutter) var(--space);
}
.card {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(1.75rem, 7vw, 7.5rem);
  align-items: end;
}

/* Sprachschalter: aktive Sprache unterstrichen, die andere grau */
.lang {
  display: flex;
  gap: 0.25rem;
  margin-right: -0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lang a {
  padding: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang a:hover,
.lang a[aria-current] {
  color: var(--ink);
}
.lang a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}
.card > .lang {
  position: absolute;
  top: -0.5rem;
  right: 0;
}

.logo {
  width: 5.5rem;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}
h1 {
  font-size: clamp(2.125rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.625rem;
}
h1 small {
  display: block;
  font-size: 0.5em;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.role {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
}
.claim {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: clamp(2rem, 4vw, 3.5rem) 0 1rem;
}
.lead {
  color: #3a3936;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.contact {
  display: grid;
  border-top: 1px solid var(--line);
}
.contact a {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}
.contact span:first-child {
  font-size: 0.875rem;
  color: var(--muted);
}
.contact a:hover .v {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn.primary,
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Rechnungsdaten ---------- */
.billing {
  margin-top: 2.5rem;
  font-size: 0.875rem;
}
.billing h2 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.billing dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem clamp(2.5rem, 5vw, 4.5rem);
}
.billing dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.billing button {
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: copy;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.billing button:hover {
  border-color: var(--ink);
}
.billing button[data-copied]::after {
  content: " – kopiert";
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--muted);
}
:lang(it) .billing button[data-copied]::after {
  content: " – copiato";
}

/* ---------- Abschnitte ---------- */
.section {
  padding: 0 var(--gutter) var(--space);
}
.section .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: var(--space);
}
.section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- Leistungen: 6 Kacheln, Details als Band unter der Reihe ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense; /* Kacheln rücken vor das offene Band nach */
  gap: 1rem;
}
.tiles h3 {
  font: inherit;
}
.tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 11.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  text-align: left;
  font: inherit;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.tile:hover {
  border-color: var(--ink);
}
.tile[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.tile .icon {
  width: 3rem;
  height: 3rem;
  flex: none;
}
.tile .label {
  margin-top: auto;
  padding-right: 2rem;
}
.tile .toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.625rem;
  width: 0.875rem;
  height: 0.875rem;
}
.tile .toggle::before,
.tile .toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 0.875rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s;
}
.tile .toggle::after {
  transform: rotate(90deg);
}
.tile[aria-expanded="true"] .toggle::after {
  transform: rotate(0);
}

.panel {
  grid-column: 1 / -1;
  background: var(--panel);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.panel .intro {
  max-width: 70ch;
  color: #3a3936;
  margin-bottom: 1.75rem;
}
.panel ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
}
.panel h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}
.panel p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.panel:not([hidden]) {
  animation: reveal 0.3s ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Zu meiner Person ---------- */
.person .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(1.75rem, 7vw, 7.5rem);
  align-items: end;
}
.person img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0;
}
.bio p {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: #3a3936;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  text-wrap: pretty;
}
.quals {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.quals li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
footer a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .card,
  .person .inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person img {
    max-width: 27.5rem;
  }
}
@media (max-width: 600px) {
  .logo {
    width: 4rem;
    margin-bottom: 1.5rem;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .tile {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 1rem;
  }
  .tile .icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .tile .label {
    margin-top: 0;
  }
  .tile .toggle {
    bottom: auto;
    top: calc(50% - 0.4375rem);
    right: 1.125rem;
  }
  .panel ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}
