/*
Theme Name: Bad Habit
Theme URI: https://badhabit-cgn.de
Author: Bad Habit Tattoo Atelier
Description: Eigenes Theme für das Bad Habit Tattoo Atelier in Köln-Dellbrück – mit WannaDos, Portfolio, Event- und Terminanfrage.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bad-habit
License: GNU General Public License v2 or later
*/

/* ---------- Schriften (lokal, ohne Google-Server) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }

:root {
  --green: #05312d;
  --teal: #367e6f;
  --ink: #272727;
  --dark: #1c1c1c;
  --cream: #efebe0;
  --gold: #c78a1e;
  --rose: #d3878a;
  --rust: #4e1500;
  --line: #c9c3b3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--cream); background: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--cream); }
.is-light a:not(.btn) { color: var(--green); }
.is-light a:not(.btn):hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.wrap-text { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--green { background: var(--green); }
.section--ink { background: var(--ink); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--tight { padding: 72px 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.row--between { justify-content: space-between; align-items: flex-end; gap: 16px 24px; }

.eyebrow { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.display em, .h2 em { font-weight: 600; color: var(--rose); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
.h2--green { color: var(--green); }
.lead { font-size: 18px; line-height: 1.65; max-width: 600px; }
.muted { color: #4a4a4a; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 32px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: opacity .15s ease; }
.btn:hover { opacity: .88; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { color: var(--green); }
.btn--outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--outline:hover { color: var(--cream); }
.btn--outline-green { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline-green:hover { color: var(--green); }
.btn--outline-gold { border-color: var(--gold); color: var(--cream); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.textlink { font-weight: 700; padding: 12px 0; text-underline-offset: 6px; }

/* ---------- Header ---------- */
.site-header { background: var(--green); border-bottom: 1px solid var(--teal); position: relative; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--cream); }
.brand img { height: 60px; width: auto; }
.brand span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; line-height: 1.6; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.main-nav a { display: block; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 14px 0 12px; color: var(--cream); border-bottom: 2px solid transparent; }
.main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.main-nav .nav-cta a { padding: 0 20px; min-height: 44px; display: inline-flex; align-items: center; background: var(--gold); color: var(--ink); border: 0; font-weight: 700; letter-spacing: .1em; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--gold); color: var(--cream); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(239,235,224,.12); }
  .main-nav .nav-cta { margin-top: 12px; }
  .main-nav .nav-cta a { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); border-top: 1px solid var(--gold); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-brand img { height: 190px; width: auto; }
.footer-slogan { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--rose); margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-col h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-col a { color: var(--cream); padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #3a3a3a; font-size: 13px; color: #bdb9ae; }

/* ---------- Hero ---------- */
.hero { background: var(--green); padding: 96px 0 112px; }
.hero .row { gap: 56px; }
.hero-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 8vw, 104px); line-height: .95; letter-spacing: -.01em; }
.hero-title em { color: var(--rose); font-weight: 600; }
.hero-img { flex: 1 1 420px; min-width: 0; border: 1px solid var(--gold); width: 100%; height: 560px; object-fit: cover; }
.page-hero { padding: 88px 0 72px; background: var(--green); }
.page-hero--rust { background: #56061d; }
.page-hero .wrap, .page-hero .wrap-narrow { display: flex; flex-direction: column; gap: 20px; }

/* Chrysanthemen-Deko */
.chrys { background-image: url("assets/img/chrysantheme.webp"); background-repeat: no-repeat; background-position: right -40px bottom -60px; background-size: min(760px, 80%) auto; }

/* ---------- Startseite ---------- */
.atelier .row { align-items: flex-start; gap: 48px 80px; }
.atelier-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; }
.atelier-title { flex: 1 1 360px; }
.artist-cards { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 16px; }
.artist-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 16px; }
.artist-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.artist-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.artist-card-name { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--green); }
.artist-card-styles { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 12px 22px; border: 1px solid var(--teal); font-size: 15px; letter-spacing: .04em; }
.gallery-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-4 a { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-4 img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-4 a:hover img { transform: scale(1.04); }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.teaser-grid > a { display: block; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; position: relative; text-decoration: none; }
.teaser-grid img { width: 100%; height: 100%; object-fit: contain; }
.teaser-blur img { filter: blur(14px); transform: scale(1.1); }
.teaser-blur-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(5, 49, 45, .55); text-align: center; padding: 24px; }
.teaser-blur-overlay .eyebrow { font-size: 12px; font-weight: 700; }
.teaser-blur-overlay strong { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--cream); }
.teaser-blur-overlay span { font-size: 14px; color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--green); padding-top: 24px; }
.step-n { font-family: var(--serif); font-size: 48px; color: var(--green); line-height: 1; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.65; }
.event-photos { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 16px; }
.event-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--gold); }

/* Hervorgehobene Schritt-Karten */
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-card { display: flex; align-items: center; gap: 20px; background: var(--green); border: 1px solid var(--gold); padding: 28px; }
.step-card-n { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.step-card h3 { font-size: 18px; font-weight: 700; }
.step-card p { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* ---------- Artists ---------- */
.artist { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.artist-photo { flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--gold); width: 100%; }
.artist-body { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.artist-name { font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1; }
.artist-bio { font-size: 18px; line-height: 1.7; max-width: 560px; }
.artist-bio p + p { margin-top: 1em; }
.artists-list { display: flex; flex-direction: column; gap: 112px; }

/* ---------- Filter & Galerien ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-label { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 700; min-width: 72px; }
.filter-btn { min-height: 44px; padding: 0 20px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--gold); background: transparent; color: var(--cream); }
.filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.grid-portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.work { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.work[hidden] { display: none; }
.work figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.work figcaption span + span { color: var(--gold); }
.zoom { padding: 0; margin: 0; border: 0; background: var(--dark); cursor: zoom-in; display: block; width: 100%; }
.zoom img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.zoom--white { background: #fff; }
.zoom--white img { object-fit: contain; }

/* WannaDos */
.wd-group { display: flex; flex-direction: column; gap: 28px; }
.wd-groups { display: flex; flex-direction: column; gap: 88px; }
.wd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; border-bottom: 1px solid var(--gold); padding-bottom: 16px; }
.wd-head h2 { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; color: var(--cream); }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wd-card { display: flex; flex-direction: column; background: var(--cream); color: var(--ink); }
.wd-card[hidden] { display: none; }
.wd-card-meta { padding: 18px 20px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wd-card-meta h3 { font-size: 16px; font-weight: 700; }
.wd-card-meta .price { font-size: 14px; color: var(--green); font-weight: 600; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; background: var(--green); color: var(--cream); white-space: nowrap; }
.badge--vergeben { background: #5a5a5a; }
.wd-more { align-self: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 15, 15, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 24px; color: var(--cream); font-size: 15px; text-align: center; }
.lb-btn { width: 48px; height: 48px; border: 1px solid var(--gold); background: transparent; color: var(--cream); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lightbox .white-bg { background: #fff; }

/* ---------- Formulare ---------- */
.form-card { background: var(--cream); color: var(--ink); padding: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; font: inherit; font-weight: 400; color: var(--ink); border-radius: 0; }
.field textarea { padding: 12px; resize: vertical; min-height: 120px; }
.field input[type="file"] { padding: 8px 0; border: 0; background: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-left: 4px solid var(--green); background: #fff; }
.notice--error { border-left-color: #a12020; }
.form-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.form-main { flex: 2 1 520px; }
.form-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 36px; }
.aside-block { display: flex; flex-direction: column; gap: 6px; font-size: 17px; line-height: 1.6; }
.aside-block h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.dm-box { display: flex; flex-direction: column; gap: 14px; background: var(--green); border: 1px solid var(--gold); padding: 28px; }
.dm-box h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--cream); letter-spacing: 0; text-transform: none; }
.event-choices { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.event-choice { position: relative; }
.event-choice input { position: absolute; opacity: 0; }
.event-choice label { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--teal); cursor: pointer; }
.event-choice label strong { font-size: 18px; }
.event-choice label span { font-size: 15px; line-height: 1.55; }
.event-choice input:checked + label { background: var(--green); border-color: var(--gold); }
.event-choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Pflege & Rechtliches ---------- */
.phase { display: flex; flex-wrap: wrap; gap: 24px 56px; border-top: 2px solid var(--green); padding-top: 32px; }
.phase-head { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.phase-when { font-family: var(--serif); font-size: 22px; color: var(--green); font-style: italic; }
.phase-head h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.1; color: var(--green); }
.phase ul { flex: 2 1 420px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.6; }
.care-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.care-box { padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--cream); }
.care-box h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; }
.care-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }
.care-box--green { background: var(--green); }
.care-box--rust { background: var(--rust); }
.callout { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border: 1px solid var(--green); padding: 32px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1; color: var(--green); margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--green); border-top: 1px solid var(--line); padding-top: 24px; margin: 36px 0 10px; }
.legal p, .legal ul { margin: 0 0 12px; font-size: 17px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .wp-block-heading { margin-top: 36px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-img { height: 380px; }
  .form-card { padding: 24px; }
  .artist-name { font-size: 56px; }
  .footer-brand img { height: 140px; }
  .legal h1 { font-size: 52px; }
  .lightbox-bar { gap: 12px; font-size: 13px; }
}
