/* ============================================================
   ZAHNARZTPRAXIS CAKIR-MEMOGLU — STYLESHEET
   ============================================================ */
:root {
  --teal: #073b38;
  --teal2: #0c514a;
  --gold: #c99a4a;
  --gold2: #edc77f;
  --brown: #49372b;
  --cream: #f5f0e7;
  --paper: #fffdf8;
  --ink: #24221e;
  --muted: #777066;
  --line: #e6ddce;

  --sidebar-width: clamp(200px, 22vw, 290px);
  --sidebar-bg-offset: var(--sidebar-width);

  --logo-size: clamp(112px, 9.5vw, 124px);
  --logo-gap: clamp(8px, 0.8vw, 12px);
  --logo-font-lg: clamp(10px, 1.15vw, 17px);
  --logo-font-sm: clamp(7px, 0.65vw, 9px);

  /* Hintergrundbilder – vom Adminbereich überschreibbar */
  --page-bg-url: url("../pages/pics/1000017454.jpg");
  --hero-bg-url: url("praxis-hero-konzept.png");
  --photo-bg-url: url("praxis-hero-konzept.png");
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; display: block; }

.shell { min-height: 100vh; position: relative; z-index: 2; }

/* ============ Sidebar ============ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--teal); color: #f8f1e5;
  padding: 28px 20px;
  display: flex; flex-direction: column;
  z-index: 10; overflow-y: auto; overflow-x: hidden;
  transition: width .3s ease;
}
.logo {
  display: flex;
flex-direction: column;
 align-items: center;
 gap: var(--logo-gap);
  padding: 0 8px 22px
; margin-bottom: 6px;
  border-bottom: 1px solid #ffffff25;
  color: var(--gold2);
 flex-shrink: 0;
 min-width: 0;
}
.logo-img {
  width: var(--logo-size); height: var(--logo-size);
  object-fit: cover; border-radius: 100%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(237,199,127,.45);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; color: var(--gold2); overflow: hidden; }
.logo-text strong { font-family: Georgia, serif; font-weight: 500; font-size: var(--logo-font-lg); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { font-size: var(--logo-font-sm); font-weight: 500; letter-spacing: .14em; text-align: center; opacity: .85; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-label { font-size: 9px; letter-spacing: .18em; color: #c6bba7; margin: 28px 10px 10px; }
.side-nav { display: grid; gap: 6px; }
.side-nav a { padding: 12px 13px; border-radius: 7px; font-size: 13px; color: #e6dfd3; display: flex; gap: 13px; align-items: center; transition: background .2s, color .2s; }
.side-nav a span { color: var(--gold2); font-size: 17px; width: 18px; text-align: center; flex-shrink: 0; }
.side-nav a:hover, .side-nav a.active { background: #ffffff17; color: var(--gold2); }

.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff25; padding: 18px 8px 0; font-size: .8rem; color: #d0c7b8; line-height: 1.8; display: flex; flex-direction: column; gap: 10px; }
.sidebar-bottom b { font-size: .85rem; color: var(--gold2); font-weight: 500; margin-bottom: 2px; }
.opening-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.opening-hours li { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; border-bottom: 1px dotted rgba(255,255,255,.12); padding-bottom: 3px; }
.opening-hours li:last-child { border-bottom: none; }
.sidebar-phone { margin-top: 6px; font-weight: 600; color: var(--gold2); letter-spacing: .04em; }
.sidebar-phone:hover { text-decoration: underline; }

/* ============ Inhalt ============ */
.content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  padding: 38px 42px 70px;
  transition: margin-left .3s ease, max-width .3s ease;
}
.eyebrow { font-size: 10px; letter-spacing: .18em; color: #a8752e; font-weight: 700; margin: 0 0 12px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.08; margin: 0 0 18px; color: var(--teal); }
h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--teal); margin: 0 0 14px; }
h3 { font-size: clamp(18px, 1.8vw, 21px); margin: 0 0 10px; }
.lead { color: var(--muted); line-height: 1.8; max-width: 660px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 28px; background: linear-gradient(110deg, #bd8738, #f0ce88); color: #241c10; padding: 13px 21px; font-weight: 700; font-size: 12px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(189,135,56,.25); }
.btn.ghost { background: transparent; border: 1px solid var(--gold); color: var(--teal); }

.hero {
  min-height: 700px; border-radius: 12px; overflow: hidden; position: relative;
  background: #2d3028 var(--hero-bg-url) center 43% / cover;
  color: #fff; display: flex; align-items: center; padding: 45px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102c28e8, #1c211c99 53%, #1c211c12); }
.hero-copy { position: relative; max-width: 530px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4vw, 53px); }
.hero h1 em { color: var(--gold2); font-style: normal; }
.hero p:not(.eyebrow) { line-height: 1.7; color: #eee6d9; }

.stat, .panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 35px 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.card .icon { color: var(--gold); font-size: 25px; margin-bottom: 14px; }
.card p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.card a { font-size: 11px; color: #9a6a2c; font-weight: 700; }

.page-title { padding: 10px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-title h1 { font-size: clamp(32px, 3.5vw, 43px); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-list .card { min-height: 170px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
.photo-panel { min-height: 300px; border-radius: 10px; background: var(--photo-bg-url) center / cover; }

.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { font-size: 11px; font-weight: 700; color: #61594e; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #d9cfbf; border-radius: 7px; background: #fffdf9; color: var(--ink); min-width: 0; }
.field textarea { min-height: 100px; resize: vertical; }

.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice { padding: 12px 14px; border-radius: 7px; background: #edf4ef; color: #285b43; font-size: 12px; margin-top: 12px; }

.footer { margin-left: var(--sidebar-width); padding: 22px 42px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; transition: margin-left .3s ease; }

/* ============ Chat ============ */
.chat-launch { position: fixed; right: 24px; bottom: 22px; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--gold); color: #1e211b; font-size: 23px; box-shadow: 0 5px 22px #0003; cursor: pointer; z-index: 20; }
.chatbox { position: fixed; right: 24px; bottom: 92px; width: min(350px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 40px #0003; z-index: 20; overflow: hidden; display: none; }
.chatbox.open { display: block; }
.chat-head { background: var(--teal); color: #fff; padding: 15px 17px; display: flex; justify-content: space-between; align-items: flex-start; }
.chat-head small { display: block; color: #d9cdb9; font-size: 10px; margin-top: 3px; }
.chat-head button { border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.chat-messages { height: 245px; overflow: auto; padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.bubble { padding: 10px 12px; border-radius: 10px; background: #f0eadf; font-size: 12px; line-height: 1.5; max-width: 88%; align-self: flex-start; }
.bubble.user { background: #dce9e3; align-self: flex-end; }
.chat-form { display: flex; padding: 10px; border-top: 1px solid var(--line); gap: 7px; }
.chat-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 10px; font-size: 12px; }
.chat-form button { border: 0; border-radius: 20px; background: var(--gold); padding: 0 14px; cursor: pointer; }
.chat-form button:disabled { opacity: .55; }
.chat-privacy { margin: 0; padding: 0 14px 10px; font-size: 10px; line-height: 1.4; color: #655f55; }

/* ============ Hintergrundbild ============ */
body::before {
  content: ""; position: fixed; top: 0; bottom: 0;
  left: var(--sidebar-bg-offset); right: 0;
  background: var(--page-bg-url) center center / cover no-repeat;
  z-index: -2; pointer-events: none;
  transition: left .3s ease;
}
body::after {
  content: ""; position: fixed; top: 0; bottom: 0;
  left: var(--sidebar-bg-offset); right: 0;
  background: rgba(245,240,231,.62);
  z-index: -1; pointer-events: none;
  transition: left .3s ease;
}

/* ============ Buchungsportal ============ */
.booking-embed { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 10px 30px rgba(7,59,56,.08); }
.booking-embed-head { margin-bottom: 16px; }
.booking-embed-head h2 { margin: 4px 0 8px; }
.booking-frame-wrap { position: relative; width: 100%; height: 1024px; max-height: 85vh; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f6f8f7; }
.booking-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.booking-fallback { margin: 14px 0 0; font-size: 12px; }
.booking-fallback a { color: #9a6a2c; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   SPLASH
   ============================================================ */
.praxis-splash { display: none; position: fixed; inset: 0; z-index: 9999; place-items: center;
  background: radial-gradient(ellipse at 50% 38%, #0c514a 0%, #073b38 45%, #052826 100%);
  overflow: hidden; transition: opacity .7s ease; }
html[data-splash="show"] .praxis-splash { display: grid; }
.praxis-splash.fade-out { opacity: 0; pointer-events: none; }
html[data-splash="show"] body { overflow: hidden; }
.praxis-splash::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.22) 0%, rgba(201,169,97,.08) 45%, rgba(201,169,97,0) 75%);
  animation: praxisHalo 2s ease-out .1s both; }
@keyframes praxisHalo { 0%{opacity:0;transform:scale(.4);} 60%{opacity:1;transform:scale(1.05);} 100%{opacity:.9;transform:scale(1);} }
html[data-splash="show"] .praxis-splash img { position: relative; width: min(360px, 72vw); height: auto; border-radius: 36px;
  box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.3), 0 0 0 1px rgba(201,169,97,.4), 0 0 60px rgba(201,169,97,.25);
  background: #073b38; opacity: 0; transform: translateY(50vh) scale(.3) rotate(-15deg);
  animation: praxisLogoIn 1.25s cubic-bezier(.34,1.4,.5,1) .15s forwards; }
@keyframes praxisLogoIn { 0%{opacity:0;transform:translateY(50vh) scale(.3) rotate(-15deg);} 55%{opacity:1;transform:translateY(-14px) scale(1.08) rotate(3deg);} 75%{transform:translateY(6px) scale(.97) rotate(-1deg);} 100%{opacity:1;transform:translateY(0) scale(1) rotate(0);} }
@media (prefers-reduced-motion: reduce) {
  html[data-splash="show"] .praxis-splash img { animation: praxisSimpleFade 1.4s ease forwards; transform: none; }
  .praxis-splash::before { animation: none; opacity: 1; }
}
@keyframes praxisSimpleFade { from{opacity:0;} to{opacity:1;} }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .content { padding: 28px 24px 55px; }
  .footer { padding: 22px 24px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
  .two-col { grid-template-columns: 1fr; }
  .booking-embed { padding: 18px; }
  .booking-frame-wrap { height: 900px; max-height: 88vh; }
}
@media (max-width: 650px) {
  :root { --sidebar-bg-offset: 0px; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 14px 16px; display: block; z-index: 10; overflow: visible; }
  .logo { gap: 12px; padding: 0 0 12px; border-bottom: none; }
  .logo-img { width: 44px; height: 44px; }
  .logo-text strong { font-size: 16px; }
  .logo-text small { font-size: 9px; }
  .nav-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 5px; padding-top: 8px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { white-space: nowrap; padding: 9px 11px; font-size: 11px; }
  .side-nav a span { display: none; }
  .content { margin-left: 0; max-width: 100vw; padding: 22px 17px 48px; }
  .footer { margin-left: 0; padding: 18px; display: block; }
  .footer span { display: block; margin: 4px 0; }
  .hero { min-height: 370px; padding: 25px; border-radius: 8px; }
  .hero h1 { font-size: 40px; }
  .grid3, .service-list { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 10px; }
  .page-title h1 { font-size: 32px; }
  .chat-launch { right: 15px; bottom: 15px; }
  .chatbox { right: 12px; left: 12px; bottom: 83px; width: auto; }
  body::before, body::after { left: 0; right: 0; }
  .booking-embed { padding: 12px; border-radius: 10px; }
  .booking-frame-wrap { height: 780px; max-height: 80vh; }
}
@media (max-width: 380px) {
  .logo-text strong { font-size: 14px; }
  .logo-text small { font-size: 8px; }
  .side-nav a { font-size: 10px; padding: 8px 10px; }
}