/* ============================================================
   Tysk Berlin – Dark Mode Stylesheet (Dummy)
   ============================================================ */

:root {
  --bg:        #0d0d0f;
  --bg-alt:    #161619;
  --surface:   #1d1d22;
  --surface-2: #26262d;
  --border:    #34343d;
  --text:      #e9e9ec;
  --text-dim:  #9a9aa3;
  --accent:    #6B6F3B;   /* oliv-grün */
  --accent-h:  #868A4E;   /* hellere Hover-Variante */
  --danger:    #e0635f;
  --radius:    6px;
  --maxw:      1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 740px; }
.center { text-align: center; margin-top: 2rem; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #000; padding: .6rem 1rem;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Focus styles (WCAG) */
:focus-visible {
  outline: 2px solid var(--accent-h);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 1.4rem; color: var(--text);
  letter-spacing: .05em;
}
.logo span { color: var(--accent); font-weight: 400; }

.primary-nav ul {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--text-dim); font-size: .95rem; font-weight: 500;
  padding: .25rem 0; position: relative;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--accent);
}
.primary-nav a[aria-disabled="true"] { opacity: .5; cursor: default; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  transition: .25s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem; }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav a { display: block; padding: .9rem 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0;}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg);}
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-block; padding: .8rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-h); color: #000; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-h); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.link-arrow { font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,161,74,.12), transparent 50%),
    linear-gradient(135deg, #18181c 0%, #0d0d0f 70%);
}
.hero-content { position: relative; padding: 4rem 1.25rem; max-width: 760px; }
.hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 600px; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.page-head { padding: 3rem 0 2rem; }
.page-head p { color: var(--text-dim); font-size: 1.1rem; max-width: 640px; }

/* Process steps */
.process-steps {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr);
}
.process-steps li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #000; font-weight: 800; margin-bottom: .75rem;
}
.process-steps h3 { margin: 0 0 .5rem; }
.process-steps p { color: var(--text-dim); margin: 0; }

.step-block {
  border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0;
}
.step-block h3 { margin: 0 0 .4rem; }
.step-block p { color: var(--text-dim); margin: 0; }

/* Showcase / image placeholders */
.img-placeholder {
  margin: 0; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder span { color: var(--text-dim); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }

.showcase-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,1fr); margin: 2rem 0; }

/* Material teaser */
.material-teaser { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.material-teaser p { font-size: 1.1rem; max-width: 640px; }

/* ---------- Portfolio ---------- */
.category-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.category-filter a {
  padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 99px;
  font-size: .85rem; color: var(--text-dim);
}
.category-filter a:hover { border-color: var(--accent); color: var(--text); }
.category-filter a.active { background: var(--accent); color: #000; border-color: var(--accent); }

.grid-showcase {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .img-placeholder { border: 0; border-radius: 0; }
.card-body { padding: 1rem 1.1rem 1.3rem; }
.card-body h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.card-body h2 a { color: var(--text); }
.card-body p { color: var(--text-dim); margin: 0; font-size: .9rem; }
.card-body .price { color: var(--accent); font-weight: 600; margin-top: .5rem; }

/* CTA / hint boxes */
.cta-box, .hint-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; margin: 3rem 0;
}
.cta-box { text-align: center; }
.hint-box { border-left: 3px solid var(--accent); }
.hint-box p { color: var(--text-dim); margin-top: 0; }

/* ============================================================
   FORMULARE
   ============================================================ */
form { margin: 2rem 0; }
fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
legend { font-weight: 700; padding: 0 .5rem; color: var(--accent); }

.field { margin-bottom: 1.25rem; }
.field label, .checkbox span { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; }

input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
  width: 100%; padding: .75rem .9rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 2px rgba(201,161,74,.25);
}
textarea { resize: vertical; }
input[type="file"] { color: var(--text-dim); font-size: .9rem; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.checkbox input { margin-top: .35rem; accent-color: var(--accent); }
.checkbox span { margin: 0; font-weight: 400; color: var(--text-dim); }

.form-hint { color: var(--text-dim); font-size: .8rem; margin: .3rem 0 0; }
.form-error { color: var(--danger); font-size: .85rem; font-weight: 500; }

/* Honeypot hidden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stepper / Progress (Termin) ---------- */
.progress {
  display: flex; list-style: none; padding: 0; margin: 0 0 2rem;
  counter-reset: step; gap: .5rem;
}
.progress li {
  flex: 1; text-align: center; font-size: .85rem; color: var(--text-dim);
  padding: .6rem .25rem; border-bottom: 3px solid var(--border);
  position: relative;
}
.progress li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); margin-right: .5rem; font-weight: 700;
}
.progress li.active { color: var(--text); border-bottom-color: var(--accent); }
.progress li.active::before { background: var(--accent); color: #000; }
.progress li.completed::before { background: var(--accent); color: #000; content: "✓"; }

/* Card grid (Buchungsart) */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
.select-card { cursor: pointer; }
.select-card input { position: absolute; opacity: 0; }
.select-card-inner {
  display: block; padding: 1.25rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); transition: .2s; height: 100%;
}
.select-card-inner strong { display: block; margin-bottom: .3rem; }
.select-card-inner .meta { color: var(--text-dim); font-size: .85rem; }
.select-card:hover .select-card-inner { border-color: var(--accent); }
.select-card input:checked + .select-card-inner {
  border-color: var(--accent); background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent);
}
.select-card input:focus-visible + .select-card-inner { outline: 2px solid var(--accent-h); outline-offset: 2px; }

.step-nav { display: flex; justify-content: space-between; margin-top: 2rem; }

/* ---------- Calendar ---------- */
.calendar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; max-width: 420px;
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-weight: 700; }
.cal-nav {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem;
}
.cal-nav:hover { border-color: var(--accent); }
.calendar-weekdays, .calendar-days {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center;
}
.calendar-weekdays span { color: var(--text-dim); font-size: .75rem; padding: .25rem 0; }
.calendar-days button {
  aspect-ratio: 1; border: 1px solid transparent; background: var(--bg-alt);
  color: var(--text); border-radius: var(--radius); cursor: pointer; font: inherit;
}
.calendar-days button:hover:not(:disabled) { border-color: var(--accent); }
.calendar-days button:disabled { color: var(--text-dim); opacity: .3; cursor: default; }
.calendar-days button.selected { background: var(--accent); color: #000; font-weight: 700; }
.calendar-days .empty { background: transparent; }

.slots { margin-top: 1.5rem; }
.slots h3 { font-size: 1rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot-grid button {
  padding: .55rem 1rem; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); cursor: pointer; font: inherit; font-size: .9rem;
}
.slot-grid button:hover { border-color: var(--accent); }
.slot-grid button.selected { background: var(--accent); color: #000; font-weight: 700; border-color: var(--accent); }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; padding: 2rem 0; }
.check-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  color: #000; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.summary {
  display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem;
  max-width: 420px; margin: 1.5rem auto; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.summary dt { color: var(--text-dim); font-weight: 500; }
.summary dd { margin: 0; font-weight: 600; }

/* ---------- Contact aside ---------- */
.contact-aside {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
}
.contact-aside p { margin: 0; color: var(--text-dim); }
.contact-aside a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }
.copyright { color: var(--text-dim); font-size: .85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .process-steps, .showcase-grid { grid-template-columns: 1fr; }
  .grid-showcase { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-showcase { grid-template-columns: 1fr; }
}

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: flex; gap: .25rem; margin-left: 1rem; }
.lang-switch a {
  font-size: .8rem; color: var(--text-dim); padding: .2rem .45rem;
  border: 1px solid var(--border); border-radius: 4px; line-height: 1;
}
.lang-switch a.active { color: #000; background: var(--accent); border-color: var(--accent); }
.lang-switch a:hover { color: var(--text); }
.header-inner .lang-switch { order: 3; }

@media (max-width: 860px) {
  .lang-switch { order: 2; margin-left: auto; margin-right: .75rem; }
}

/* ---------- Inhaltsseiten / Rechtstexte ---------- */
.content h2 { margin-top: 2.5rem; }
.content h3 { margin-top: 1.75rem; color: var(--accent); font-size: 1.1rem; }
.content p, .content li { color: var(--text-dim); }
.content ul { padding-left: 1.25rem; }
.content li { margin-bottom: .4rem; }
.content address { font-style: normal; color: var(--text); }

/* Tabellen */
table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
caption { text-align: left; color: var(--text-dim); font-size: .85rem; margin-bottom: .5rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th[scope="row"] { color: var(--text); font-weight: 600; }
td { color: var(--text-dim); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Journal */
.journal-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,1fr); margin: 2rem 0; }
.journal-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.journal-grid .img-placeholder { border: 0; border-radius: 0; aspect-ratio: 16/10; }
.journal-grid .j-body { padding: 1.1rem 1.2rem 1.4rem; }
.journal-grid h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.journal-grid h2 a { color: var(--text); }
.journal-grid time { color: var(--accent); font-size: .8rem; display: block; margin-bottom: .5rem; }
.journal-grid p { color: var(--text-dim); font-size: .9rem; margin: 0 0 .75rem; }

/* Material-Liste / About */
.about-portrait { aspect-ratio: 1; max-width: 320px; }
.social-list { display: flex; gap: 1rem; list-style: none; padding: 0; flex-wrap: wrap; }
.social-list a { padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.social-list a:hover { border-color: var(--accent); }

.map-placeholder { aspect-ratio: 16/9; }

@media (max-width: 760px) {
  .journal-grid { grid-template-columns: 1fr; }
}
/* ---------- Kategorie-Detailseiten ---------- */
.tldr {
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2rem;
}
.tldr p { margin: 0; color: var(--text); }
.detail-gallery {
  display: grid; gap: 1rem; grid-template-columns: repeat(3,1fr); margin: 2rem 0;
}
.price-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0;
}
.price-box .big { color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.detail-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .9rem; }

@media (max-width: 760px) { .detail-gallery { grid-template-columns: 1fr; } }
/* ---------- Filter-Tabs auf Detailseiten ---------- */
.content .category-filter { margin: 0 0 2rem; }
.category-filter a[aria-current="page"] {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ---------- FSE / WP 7.0 Ergaenzungen ---------- */

/* Button Hover-Fallback */
.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--accent-h) !important;
  color: #000 !important;
}

/* Outline-Button Styling */
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.is-style-outline .wp-block-button__link:hover {
  border-color: var(--accent) !important;
  color: var(--accent-h) !important;
}

/* Easy!Appointments Container - Fallback falls theme.json nicht greift */
.ea-booking-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.ea-booking-wrapper iframe,
.wp-block-easyappointments iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

@media (max-width: 860px) {
  .ea-booking-wrapper iframe,
  .wp-block-easyappointments iframe {
    min-height: 500px;
  }
}
