
:root{
  --bg:#faf7fb;
  --card:#ffffff;
  --text:#222222;
  --muted:#5a5f69;
  --accent:#c45e95;
  --accent-2:#63a6c1;
  --ring: rgba(196,94,149,.25);
}
*{box-sizing:border-box}
html{ scroll-behavior: smooth }
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196,94,149,.08), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(99,166,193,.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}
/* Watermark */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("logo-iris.png") center/520px 520px no-repeat;
  opacity: .05; /* very subtle */
  filter: blur(1px) saturate(90%);
}
/* Header */
.site-header{
  position: sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:1rem 1.25rem;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,10,20,.06);
}
.brand-link{ text-decoration:none; color:inherit; display:flex; align-items:center; gap:1rem }
.logo{width:96px; height:96px; object-fit:contain; border-radius:18px; box-shadow:0 8px 28px var(--ring)}
.brand-name-graphic{ height:64px; width:auto; display:block }
.titles{ position:relative; background:rgba(255,255,255,.55); padding:.3rem .55rem; border-radius:12px; box-shadow: 0 6px 14px rgba(20,23,28,.06) }

/* Shrink when lightbox open */
body.lightbox-open .site-header{ padding:.6rem .9rem }
body.lightbox-open .logo{ width:56px; height:56px; border-radius:14px }
body.lightbox-open .brand-name-graphic{ height:32px }
body.lightbox-open .titles{ background:transparent; box-shadow:none; padding:0 }

.site-nav a{
  color:var(--text); text-decoration:none; padding:.5rem .75rem; border-radius:10px;
  border:1px solid transparent;
}
.site-nav a:hover{ border-color: rgba(10,10,20,.12); background: rgba(10,10,20,.03)}

main{padding: 1.25rem; max-width: 1100px; margin: 0 auto;}

h2{ font-size:1.25rem; margin: 1.2rem 0 .8rem; letter-spacing:.2px; color: #111; border-left: 4px solid var(--accent); padding-left:.6rem;}

.intro p{margin:.25rem 0 0; color: var(--muted)}

.about-row{ display:flex; gap:1rem; flex-wrap:wrap; align-items:flex-start }
.about-text{ flex:1 1 280px }
.about-photo{ flex:0 0 240px; display:flex; justify-content:center; }
.photo-frame{
  width:220px; height:220px;
  border:2px dashed rgba(0,0,0,.2);
  border-radius:16px; overflow:hidden; background:#fff;
  display:flex; align-items:center; justify-content:center;
}
.about-img{ width:100%; height:100%; object-fit:contain; border-radius:14px }

.gallery-section{margin-top:.5rem}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap:.6rem;
}
.thumb{
  display:block;
  border-radius:14px; overflow:hidden;
  background: var(--card);
  border: 1px solid rgba(10,10,20,.08);
  box-shadow: 0 8px 18px rgba(20,23,28,.08);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.thumb:hover{ transform: translateY(-2px); border-color: rgba(196,94,149,.35)}
.thumb img{display:block; width:100%; height:140px; object-fit:contain;}

.contact .impressum-row{ display:flex; gap:1rem; align-items:flex-start; justify-content:space-between; flex-wrap: wrap; }
.impressum-left{ flex: 1 1 320px }
.impressum-right{ flex: 0 0 auto; display:flex; align-items:flex-start; justify-content:flex-end; min-width:240px }

.impressum-cards{ display:grid; gap:.6rem }
.card-line{
  display:flex; gap:.6rem; align-items:flex-start;
  background:#ffffff; border:1px solid rgba(10,10,20,.08);
  border-radius:12px; padding:.6rem .8rem;
  box-shadow: 0 6px 14px rgba(20,23,28,.06);
}
.card-line .ico{ flex: 0 0 auto; opacity:.8; margin-top:.1rem }
.card-line a{ color:#0b3b3c; text-decoration:none; border-bottom:1px dashed rgba(11,59,60,.35) }
.card-line a:hover{ border-bottom-color: transparent }

/* Xing button */
.xing-button{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#006567; color:#fff; border:none; border-radius:10px;
  padding:.6rem 1rem; text-decoration:none; font-weight:600;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.xing-button:hover{ background:#008080 }
.xing-icon{ display:inline-block }

.site-footer{
  margin-top:2rem; padding:1rem 0 2rem; color: var(--muted); text-align:center;
  border-top:1px solid rgba(10,10,20,.08);
}
.site-footer .back-to-top{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:12px; text-decoration:none; font-size:1.2rem;
  border:1px solid rgba(10,10,20,.12); background:#fff; color:#111;
  box-shadow: 0 8px 16px rgba(20,23,28,.08);
  margin-top:.75rem;
}
.site-footer .back-to-top:hover{ transform: translateY(-2px); }

/* Lightbox */
.lightbox{ position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,.86); }
.lightbox.open{ display:flex }
.lightbox img{ max-width:90vw; max-height:85vh; border-radius:16px; border:1px solid rgba(255,255,255,.15) }
.lb-close,.lb-prev,.lb-next{
  position:absolute; border:0; background:rgba(255,255,255,.18);
  color:#fff; font-size:2rem; line-height:1; width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center; cursor:pointer; box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.lb-close{ top: 20px; right: 20px}
.lb-prev{ left: 20px}
.lb-next{ right: 20px}
.lb-prev, .lb-next{ top: 50%; transform: translateY(-50%)}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{ background: rgba(255,255,255,.28) }

/* --- v10: Brand transparency + Impressum table + Xing full-height --- */
.brand-integrated .titles{ background: transparent !important; box-shadow: none !important; padding: 0 !important }
.brand-link{ gap: 1rem; flex-wrap: nowrap; }

/* Impressum as transparent table */
.impressum-table{
  width:100%;
  border-collapse: collapse;
  background: transparent;
}
.impressum-table td{
  padding: .5rem .5rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(10,10,20,.08);
}
.impressum-table tr:last-child td{ border-bottom: none }
.impressum-table .cell-ico{ width: 28px }
.impressum-table .cell-label{ white-space: nowrap; color: var(--muted); font-weight:600 }
.impressum-table .cell-value a{ color:#0b3b3c; text-decoration:none; border-bottom:1px dashed rgba(11,59,60,.35) }
.impressum-table .cell-value a:hover{ border-bottom-color: transparent }

/* Make Xing button equal the height of the table */
.contact .impressum-row{ align-items: stretch }
.impressum-right{ align-self: stretch; display:flex }
.impressum-right .xing-button{
  height: 100%;
  display:flex; align-items:center; justify-content:center;
  padding-left: 1.1rem; padding-right: 1.1rem;
}

/* --- v11: Top-align Xing + transparent logo --- */
.impressum-right{ align-items: flex-start !important; }
.impressum-right .xing-button{ height: auto !important; align-self: flex-start !important; }

/* --- v12: Contact header with XING next to H2; logo contain --- */
.contact-header{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.5rem;
}
.contact-header h2{ margin: 0 }
.contact-header .xing-button{ margin-left:auto }

/* Ensure button aligns at top of the section heading line */
.contact .impressum-row{ margin-top:.5rem }

/* Logo box to avoid clipping */
.logo{ background: transparent; padding: 6px }

/* --- v13: spacing & alignment fixes --- */
section.contact{ margin-top: 2.2rem }
.contact-header{ display:flex; align-items:flex-start; gap:1rem; margin-bottom:.6rem }
.contact-header h2{ margin: 0 }

/* --- v14: remove logo box, fix about photo size, add private note, spacing --- */

/* Logo: no shadow/padding/background to avoid 'box' look */
.logo{
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Brand title overlay: truly transparent, no box */
.brand-integrated .titles{
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* About photo: force exact same size as dashed frame and full height */
.about-photo .photo-frame{
  width: 240px;
  height: 240px;
}
.about-photo .about-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Private note under Impressum */
.private-note{
  color: var(--muted);
  font-size: .95rem;
  margin-top: .6rem;
}

/* More spacing above Kontakt if still tight */
section.contact{ margin-top: 2.6rem !important }


/* --- v34: Always-visible brand title (bitmap fallback behind SVG) --- */
.titles{ position: relative; display: grid; align-items: center; min-height: 64px }
.brand-name-graphic-svg{ height:64px; width:auto; display:block; position: relative; z-index: 2 }
.brand-fallback-picture{ display:block; position:absolute; inset:0; z-index:1; pointer-events:none }
.brand-fallback-img{ height:64px; width:auto; object-fit:contain; }
@media (max-width: 480px){
  .brand-name-graphic-svg, .brand-fallback-img{ height:52px }
}


/* --- v36: enforce brand PNG/WebP sizing, visible on all systems --- */
.titles{ position: relative; display:flex; align-items:center; min-height:64px }
.brand-only-picture{ display:block; height:64px }
.brand-only-img{ height:64px; width:auto; display:block; object-fit:contain; filter: drop-shadow(1px 1px 3px rgba(0,0,0,.25)); }
@media (max-width: 480px){
  .titles{ min-height:52px }
  .brand-only-picture, .brand-only-img{ height:52px }
}

/* v37: scope brand sizing to header only and ensure no background image leaks */
.site-header .titles{ position:relative; display:flex; align-items:center; min-height:64px }
@media (max-width: 480px){ .site-header .titles{ min-height:52px } }


/* v38: match brand size to logo (96px desktop, 56px mobile) */
.site-header .logo{ width:96px; height:96px }
.site-header .titles{ min-height:96px }
.brand-only-picture{ height:96px }
.brand-only-img{ height:96px }
@media (max-width: 480px){
  .site-header .logo{ width:56px; height:56px }
  .site-header .titles{ min-height:56px }
  .brand-only-picture, .brand-only-img{ height:56px }
}


/* v39: Remove brand text everywhere and keep responsive logo-only header */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,1,1); white-space:nowrap; border:0;
}
.site-header{ position:sticky; top:0; z-index:3000; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); }
.site-header .brand{ gap:0.75rem }
.site-header .logo{
  width: clamp(56px, 10vw, 96px);
  height: clamp(56px, 10vw, 96px);
  object-fit: contain; border-radius: 18px; background: transparent;
}
/* Titles area now empty but keep layout height consistent */
.site-header .titles{ min-height: 0; padding: 0; display:none }
.brand-name-graphic-svg, .brand-only-picture, .brand-fallback-picture, .brand-only-img{ display:none !important }

/* Ensure lightbox never hides header */
.lightbox{ z-index: 1500; }


/* v40: responsive brand text as image, visible on all systems */
.site-header .titles{ display:flex; align-items:center; min-height: clamp(48px, 10vw, 96px) }
.brand-text-picture{ display:block; height: clamp(48px, 10vw, 96px) }
.brand-text-img{ display:block; height: clamp(48px, 10vw, 96px); width:auto; object-fit:contain; filter: drop-shadow(1px 1px 3px rgba(0,0,0,.22)); }

/* ensure old brand classes remain hidden */
.brand-only-picture, .brand-only-img, .brand-fallback-picture{ display:none !important }
