﻿@font-face {
  font-family: "Orange Avenue";
  src: url("Font/OrangeAvenueDEMO-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Emilys Candy";
  src: url("Font/Emilys_Candy/EmilysCandy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #f4efe7;
  --bg-soft: #efe6d8;
  --text: #172124;
  --muted: #445258;
  --accent: #39ff14;
  --accent-dark: #1fa80d;
  --card: #ffffff;
  --line: rgba(23, 33, 36, 0.14);
  --shadow: 0 16px 40px rgba(26, 21, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section[id],
article[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
    url("Bilder/background.png") center / cover fixed no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
    url("Bilder/background.png") center / cover no-repeat;
  opacity: 0;
}

img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.85rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 2rem;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-subtext {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--accent);
}

.hero {
  padding: 0 0 2.6rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.kicker,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4.75vw, 3.6rem);
  margin-top: 0.6rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.44rem;
}

p {
  margin: 0;
  line-height: 1.68;
  color: var(--muted);
}

.lead {
  margin: 1.2rem 0 1.8rem;
  max-width: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  padding: 0.9rem;
  min-width: 108px;
  min-height: 108px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  box-shadow: 0 0 24px rgba(255, 47, 146, 0.35);
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.6rem;
  min-height: 100%;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.45);
}

.hero-copy,
.hero-card {
  min-height: 380px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 0 0;
}

.brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: auto;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-dark);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-cta:hover,
.brand-cta:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(31, 168, 13, 0.35);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.btn-pink {
  background: #ff2f92;
  opacity: 0.82;
  box-shadow: 0 0 26px rgba(255, 47, 146, 0.6);
}

.btn-orange {
  background: #ff7a00;
  opacity: 0.82;
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.6);
}

.btn-green {
  background: #39ff14;
  color: #07110a;
  opacity: 0.82;
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.6);
}

.btn-purple {
  background: #7a2fff;
  opacity: 0.82;
  box-shadow: 0 0 26px rgba(122, 47, 255, 0.6);
}

.hero-card-text {
  color: #3b3151;
}

.hero-orbs {
  position: relative;
  margin-top: 2rem;
  height: 240px;
  width: 100%;
}

.hero-orb {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.hero-orb-purple {
  top: 22px;
  left: 50%;
  transform: translateX(-140px);
  background: rgba(255, 47, 146, 0.76);
}

.hero-orb-pink {
  top: 76px;
  left: 50%;
  transform: translateX(-66px);
  background: rgba(255, 122, 0, 0.72);
}

.hero-orb-violet {
  top: 32px;
  left: 50%;
  transform: translateX(0);
  background: rgba(57, 255, 20, 0.72);
}

.section {
  padding: 3rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.note {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  align-content: center;
}

.about-panel {
  width: 100%;
}

.about-copy {
  display: flow-root;
}

.about-copy > * + * {
  margin-top: 1rem;
}

.about-cv {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.about-cv h3 {
  font-size: 1.08rem;
}

.about-photo {
  float: left;
  width: clamp(220px, 30vw, 340px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 1.6rem 1rem 0;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 26px rgba(24, 16, 12, 0.18);
}

.cards,
.social-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.social-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem;
  min-width: 0;
}

.social-link-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link-card:hover,
.social-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 47, 146, 0.45);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.14);
}

.project-social-grid {
  margin-top: 1rem;
}

.project-social-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  overflow: hidden;
}

.social-card-media {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #ffffff;
  object-fit: cover;
  display: block;
}

.project-social-card a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.project-social-card a:hover,
.project-social-card a:focus-visible {
  text-decoration: underline;
}

.portfolio-media-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: stretch;
}

.portfolio-hint {
  margin-top: 1rem;
}

.portfolio-logo-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1rem;
  height: 118px;
  display: grid;
  align-content: start;
  justify-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.portfolio-logo-card:hover,
.portfolio-logo-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 168, 13, 0.35);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.12);
}

.portfolio-logo-card img {
  max-width: 110px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.portfolio-logo-card--appyourself img {
  max-width: 220px;
  max-height: 92px;
}

.portfolio-pdf-card {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 1rem;
  height: 118px;
  display: grid;
  align-content: start;
  justify-items: start;
  text-align: left;
  cursor: pointer;
  margin: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-pdf-card > * + * {
  margin-top: 0.35rem;
}

.portfolio-pdf-card:hover,
.portfolio-pdf-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 168, 13, 0.35);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.12);
}

.portfolio-pdf-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent-dark);
}

.portfolio-pdf-title {
  display: block;
  font-weight: 700;
}

.portfolio-pdf-logo {
  max-width: 184px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.portfolio-kress-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-kress-card:hover,
.portfolio-kress-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 168, 13, 0.35);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.12);
}

.portfolio-kress-card p {
  color: var(--muted);
}

.portfolio-kress-card span:last-child {
  color: var(--accent-dark);
  font-weight: 600;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pdf-modal[aria-hidden="true"] {
  display: none;
}

.pdf-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 95vw);
  height: min(88vh, 920px);
  background: #fffdf9;
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(8, 8, 9, 0.3);
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  user-select: none;
}

.pdf-modal-copy {
  padding-right: 2.2rem;
}

.pdf-modal-copy h3 {
  margin-bottom: 0.4rem;
}

.pdf-modal-stage {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.pdf-modal-object {
  width: 100%;
  height: 100%;
  border: 0;
}


.website-project-grid {
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

.website-project-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.2rem;
  align-items: stretch;
  min-width: 0;
}

.website-project-media {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  object-fit: cover;
  display: block;
}

.website-project-copy {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  min-width: 0;
}

.website-project-copy a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.website-project-copy a:hover,
.website-project-copy a:focus-visible {
  text-decoration: underline;
}

.card-books {
  grid-column: 1 / -1;
}

.projects-intro {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.content-performance-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 1.4rem;
  align-items: center;
  min-width: 0;
}

.content-performance-image {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}

.card-intro {
  margin-top: 0.6rem;
}

.card a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--accent-dark);
  font-weight: 600;
}

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

.service-flip-card {
  min-width: 0;
  perspective: 1200px;
  cursor: pointer;
  touch-action: manipulation;
}

.service-flip-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.service-flip-card:hover .service-flip-card-inner,
.service-flip-card:focus-within .service-flip-card-inner,
.service-flip-card.is-flipped .service-flip-card-inner {
  transform: rotateY(180deg);
}

.service-flip-card:focus-visible {
  outline: 2px solid rgba(31, 168, 13, 0.45);
  outline-offset: 6px;
}

.service-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
}

.service-flip-front {
  background: rgba(255, 62, 191, 0.8);
  text-align: center;
}

.service-flip-card:nth-child(2) .service-flip-front,
.service-flip-card:nth-child(4) .service-flip-front {
  background: rgba(255, 138, 28, 0.8);
}

.service-flip-card:nth-child(3) .service-flip-front,
.service-flip-card:nth-child(5) .service-flip-front {
  background: rgba(57, 255, 20, 0.8);
}

.service-flip-card:nth-child(6) .service-flip-front {
  background: rgba(255, 62, 191, 0.8);
}

.service-flip-front strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #172124;
}

.service-flip-back {
  background: var(--bg-soft);
  transform: rotateY(180deg);
  align-items: flex-start;
  text-align: left;
}

.service-flip-back p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.book-carousel {
  position: relative;
  margin-top: 1rem;
}

.book-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.2rem 0.1rem 0.4rem;
}

.book-track::-webkit-scrollbar {
  display: none;
}

.book-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  padding: 0.6rem;
  min-width: clamp(150px, 20vw, 200px);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-item {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 0;
  padding: 0.6rem;
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 0.6rem;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.book-item img {
  width: 100%;
  aspect-ratio: 176 / 254;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.post-thumb {
  width: 100%;
  aspect-ratio: 176 / 254;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  align-content: start;
  padding: 0.9rem;
  color: #ffffff;
}

.post-thumb span,
.post-thumb strong,
.post-thumb .post-copy {
  color: inherit;
}

.post-copy-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.85rem;
  width: 100%;
  min-height: calc(100% - 0.2rem);
}

.post-thumb-pink {
  background: linear-gradient(135deg, #ff2f92, #ff7bd3);
}

.post-thumb-orange {
  background: linear-gradient(135deg, #ff7a00, #ffb347);
}

.post-thumb-purple {
  background: linear-gradient(135deg, #7a2fff, #d16dff);
}

.post-thumb-green {
  background: linear-gradient(135deg, #00d96f, #79ff9c);
}

.book-item span {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.post-item span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.book-item strong {
  font-size: 0.95rem;
  line-height: 1.2;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

#kinderbuch-reihe h3,
#kinderbuch-reihe .book-item strong,
#kinderbuch-reihe .book-modal-copy h3,
#kinderbuch-reihe .card-intro strong {
  font-family: "Emilys Candy", "Playfair Display", Georgia, serif;
}

.post-item strong {
  font-size: 1.35rem;
  line-height: 1.2;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.post-copy {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.post-thumb .post-copy {
  margin: 0;
  color: #172124;
}

.book-item:hover,
.book-item:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(181, 79, 47, 0.35);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.14);
}

.post-item:hover,
.post-item:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 47, 146, 0.45);
  box-shadow: 0 12px 24px rgba(26, 21, 17, 0.14);
}

.book-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 250, 242, 0.96);
  color: var(--accent-dark);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.book-carousel:hover .book-nav,
.book-carousel:focus-within .book-nav {
  opacity: 1;
  pointer-events: auto;
}

.book-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.book-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.book-nav-prev {
  left: -11px;
}

.book-nav-next {
  right: -11px;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.book-modal[aria-hidden="true"] {
  display: none;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 18, 0.62);
}

.book-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  background: #fffdf9;
  border-radius: 0;
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(8, 8, 9, 0.3);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem;
  align-items: start;
}

.book-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  font-size: 1.3rem;
  cursor: pointer;
}

.book-modal-image {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.book-modal-copy h3 {
  font-size: 1.8rem;
  margin-right: 2.1rem;
}

.book-modal-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.accent {
  background: linear-gradient(175deg, rgba(181, 79, 47, 0.08), rgba(123, 47, 24, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.max-text {
  margin-top: 1rem;
}

.site-footer {
  padding: 2rem 0 2.4rem;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-dropdown {
  min-width: 280px;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
}

.legal-dropdown summary {
  cursor: pointer;
  font-weight: 700;
}

.legal-content {
  padding-top: 0.7rem;
  display: grid;
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    gap: 0;
  }

  .website-project-card {
    grid-template-columns: 1fr;
  }

  .portfolio-media-grid {
    grid-template-columns: 1fr;
  }

  .content-performance-layout {
    grid-template-columns: 1fr;
  }

  .header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    gap: 0.7rem 1rem;
    min-width: 0;
  }

  .about-photo {
    width: min(100%, 280px);
    margin-right: 1.2rem;
  }

  .book-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .book-item {
    min-width: 150px;
  }

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

  .book-modal-card {
    grid-template-columns: 1fr;
  }

  .pdf-modal-card {
    height: min(82vh, 920px);
  }

  .book-modal-image {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  body {
    background: transparent;
  }

  body::before {
    z-index: 0;
    opacity: 1;
    background:
      linear-gradient(rgba(244, 239, 231, 0.44), rgba(244, 239, 231, 0.44)),
      url("Bilder/background.png") center top / auto 100vh no-repeat;
  }

  .grain {
    opacity: 0.08;
  }

  .site-header {
    position: static;
  }

  .header-row {
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0;
  }

  .brand {
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .brand-subtext {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav {
    display: none;
    width: 100%;
    padding: 0.85rem 0 0.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    border-top: 1px solid var(--line);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    font-size: 0.96rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .hero-grid {
    gap: 1.3rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .note,
  .card,
  .social-grid article,
  .social-link-card,
  .projects-intro,
  .website-project-card {
    padding: 0.9rem;
    min-width: 0;
  }

  .about-panel {
    gap: 1rem;
  }

  .about-photo,
  .book-modal-image {
    max-width: min(100%, 240px);
  }

  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }

  .content-performance-image,
  .social-card-media,
  .website-project-media {
    min-height: 0;
    width: 100%;
  }

  .social-card-media {
    aspect-ratio: 16 / 10;
  }

  .website-project-card {
    gap: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    background: transparent;
  }

  body::before {
    background:
      linear-gradient(rgba(244, 239, 231, 0.34), rgba(244, 239, 231, 0.34)),
      url("Bilder/background.png") center top / auto 100vh no-repeat;
  }

  .wrap {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand-copy {
    gap: 0;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .brand,
  .brand-copy,
  .hero-copy,
  .about-copy,
  .website-project-copy,
  .project-social-card,
  .card,
  .note {
    min-width: 0;
  }

  .hero-copy h1,
  h2 {
    overflow-wrap: anywhere;
  }

  .social-card-media {
    aspect-ratio: 3 / 2;
  }

  .service-flip-face {
    padding: 1rem;
  }

  .service-flip-back p {
    font-size: 0.94rem;
  }
}


