/* =============================================================
   FONTS – identisch zur Freelance-Seite
   Dateien in dieses Verzeichnis (css/) legen:
   - iosevka.woff2
   - IBMPlexSans-Regular.ttf
   - IBMPlexSans-Medium.ttf
   - IBMPlexSans-Bold.ttf
============================================================= */

@font-face {
  font-family: 'Iosevka';
  src: url('../css/iosevka.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../css/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../css/IBMPlexSans-Medium.ttf') format('truetype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../css/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   DESIGN TOKENS – Blau/Petrol-Palette
============================================================= */
:root {
  --bg:           #F4F6F7;
  --surface:      #FFFFFF;
  --text:         #1A1C1E;
  --text-muted:   #5A6470;
  --accent:       #0D3D4F;   /* tiefes Petrol  (= --accent grün war #1B4332) */
  --accent-mid:   #1A7A8A;   /* mittleres Petrol */
  --accent-light: #4DC4D4;   /* helles Teal    (= --accent-light grün war #74C69D) */
  --border:       #D6DDE2;
  --radius:       3px;
  --max-width:    960px;
  --font-head:    'Iosevka', 'Courier New', monospace;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
}

/* =============================================================
   RESET
============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }

/* =============================================================
   LAYOUT UTILITY
============================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =============================================================
   TYPOGRAPHY
============================================================= */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 4vw, 2.2rem);  letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--accent-mid);
  border-color: var(--accent-mid);
}

.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--ghost:hover,
.btn--ghost:focus {
  background-color: var(--accent);
  color: #fff;
}

/* =============================================================
   HEADER / NAV  (CSS-only Hamburger, kein JS)
============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-block: 1rem;
  position: relative;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-right: auto;
}

.nav__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav__menu {
  display: none;
  flex-direction: column;
  width: 100%;
  padding-top: 0.75rem;
  gap: 0;
}

.nav__toggle:checked ~ .nav__menu {
  display: flex;
}

.nav__toggle:checked ~ .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle:checked ~ .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav__toggle:checked ~ .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__link {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav__link:last-child  { border-bottom: none; }
.nav__link:hover       { color: var(--accent); }
.nav__link--cta        { color: var(--accent); font-weight: 600; }

@media (min-width: 768px) {
  .nav__burger { display: none; }

  .nav__menu {
    display: flex !important;
    flex-direction: row;
    width: auto;
    padding-top: 0;
    align-items: center;
    gap: 2rem;
  }

  .nav__link {
    border-bottom: none;
    padding: 0;
  }

  .nav__link--cta {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s;
  }
  .nav__link--cta:hover {
    background-color: var(--accent);
    color: #fff;
  }
}

/* =============================================================
   SEKTIONEN – Grundstruktur
============================================================= */
.section {
  padding-block: 4rem;
}

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

.section--accent {
  background-color: var(--accent);
  color: #fff;
  text-align: center;
  padding-block: 5rem;
}

.section__title {
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h1.section__title {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background-color: var(--accent-light);
  border-radius: 2px;
}

.section--accent .section__title::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.45);
}

.section__title--light {
  color: #fff;
}

/* =============================================================
   HERO
============================================================= */
.hero {
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =============================================================
   BLOG – Listenansicht
============================================================= */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(13, 61, 79, 0.07);
}

.post-card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.5rem;
}

.post-card__title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.post-card__title a:hover {
  color: var(--accent-mid);
}

.post-card__summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.post-card__summary h2,
.post-card__summary h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background-color: rgba(77, 196, 212, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

/* =============================================================
   BLOG – Einzelbeitrag
============================================================= */
.post {
  padding-block: 4rem;
}

.post__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post__meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
}

.post__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.post__body {
  max-width: 68ch;
}

.post__body p      { margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.8; }
.post__body h2     { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.post__body h3     { margin-top: 2rem; margin-bottom: 0.5rem; font-size: clamp(1rem, 2vw, 1.15rem); }
.post__body ul,
.post__body ol     { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-muted); }
.post__body ul     { list-style: disc; }
.post__body ol     { list-style: decimal; }
.post__body li     { margin-bottom: 0.35rem; line-height: 1.7; }
.post__body a      { color: var(--accent-mid); text-decoration: underline; text-underline-offset: 3px; }
.post__body img    { border-radius: var(--radius); margin-block: 1.5rem; }
.post__body blockquote {
  border-left: 3px solid var(--accent-light);
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin-block: 1.5rem;
}
.post__body pre {
  background-color: var(--text);
  color: var(--accent-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  margin-block: 1.5rem;
}
.post__body code {
  font-family: var(--font-head);
  font-size: 0.875em;
  background-color: rgba(13, 61, 79, 0.07);
  padding: 0.15em 0.35em;
  border-radius: 2px;
}
.post__body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* =============================================================
   FOTOS – Album-Übersicht
============================================================= */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.album-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.album-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(13, 61, 79, 0.1);
}

.album-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--border);
}

.album-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-card:hover .album-card__thumb img {
  transform: scale(1.03);
}

.album-card__body {
  padding: 1rem 1.25rem;
}

.album-card__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.album-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================================
   FOTOS – Einzelalbum (Masonry-ähnliches Grid)
============================================================= */
.photo-grid {
  columns: 2;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .photo-grid { columns: 3; }
}

@media (min-width: 900px) {
  .photo-grid { columns: 4; }
}

.photo-grid__item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.photo-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.photo-grid__item:hover img {
  opacity: 0.88;
}

/* Lightbox (CSS-only via :target) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(10, 20, 30, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox:target {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.7;
  text-decoration: none;
}
.lightbox__close:hover { opacity: 1; }


.section__more {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-mid);
}
.section__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   IMPRESSUM / DATENSCHUTZ – Innenseiten
============================================================= */
.page-content {
  padding-block: 4rem;
}

.page-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-content h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.page-content p,
.page-content address {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: normal;
}

.page-content a {
  color: var(--accent-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--accent-mid);
  margin-bottom: 2rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* =============================================================
   FOOTER
============================================================= */
.footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, 0.45);
  padding-block: 1.5rem;
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s;
}
.footer__nav a:hover { color: #fff; }

.photo-license {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.photo-license a {
  color: var(--text-muted);
  text-decoration: underline;
}
.photo-license a:hover {
  color: var(--accent-mid);
}
