/* ===================================================
   thinksolid – style.css (clean)
=================================================== */

:root{
  --bg: #6b7f67;
  --text: #ffffff;
  --contrast: #000000;

  --maxw: 1100px;
  --pad: clamp(18px, 3vw, 42px);
  --gap: clamp(18px, 3vw, 48px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

.ts-body{
  margin: 0;
  background: var(--bg);
  color: var(--text);

  /* Helvetica via Typekit (falls vorhanden) + Fallbacks */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  line-height: 1.45;
}

.ts-page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================================
   Wrap
=================================================== */

.ts-wrap{
  width: min(var(--maxw), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* ===================================================
   Typo / Links
=================================================== */

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

a:hover{ opacity: .85; }

h1,h2,h3{
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: .2px;
}

p{
  margin: 0 0 12px;
  font-weight: 300;
}

small{ opacity: .9; }

/* ===================================================
   Main Layout (centered block)
=================================================== */

.ts-main{
  flex: 1;
  display: flex;
  justify-content: center;  /* Block horizontal zentrieren */
  align-items: center;      /* Block vertikal zentrieren */
  padding: var(--pad) 0;
}

/* 2-spaltiger Content-Block:
   - Spalte 1 fix 232px
   - Spalte 2 nur so breit wie Inhalt
   - Blockbreite = Inhalt, aber Block im Fenster zentriert
*/
.ts-two-col{
  display: grid;
  grid-template-columns: 232px max-content;
  gap: var(--gap);
  align-items: start;

  width: fit-content;
  margin-inline: auto;   /* zentriert innerhalb .ts-wrap */
}

@media (max-width: 860px){
  .ts-main{
    align-items: flex-start;
    padding-top: var(--pad);
    padding-bottom: 24px;
  }

  .ts-two-col{
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
  }
}

/* ===================================================
   Blocks
=================================================== */

.ts-logo{
  display: flex;
  justify-content: flex-start; /* Logo links in der 232px-Spalte */
}

.ts-logo img{
  max-width: 100%;
  height: auto;
  display: block;
}

.ts-panel{
  padding: 0;
  padding-top: 200px; 
}

@media (max-width: 860px){
	.ts-panel {
		padding-top:30px;
	}
	.ts-logo img {width:40vw}
  }

.ts-kontakt{
  font-size: 14px;
}

.ts-kontakt a{
  font-weight: 500;
}

.ts-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-list li{
  padding: 0;
}

/* ===================================================
   Footer – exakt in Linie mit Content (linke Kante)
=================================================== */

.ts-footer{
  padding: 18px 0 24px;
}

/* Footer-Blockbreite = 232px + Gap + gemessene Panelbreite */
.ts-footer-wrap{
  --col1: 232px;
  --col2: var(--panelw, 320px);

  display: grid;
  grid-template-columns: var(--col1) var(--col2);
  column-gap: var(--gap);

  width: calc(var(--col1) + var(--gap) + var(--col2));
  margin-inline: auto;         /* Block exakt wie Content zentriert */
  align-items: start;
}

.ts-footer-brand{
  grid-column: 1;
}

.ts-footer-logo{
  width: 63px;
  height: 44px;
  display: block;
  object-fit: contain;
}

/* Zeile soll unter dem Logo links starten */
.ts-footer-meta{
  grid-column: 1 / -1;
}

.ts-footer-line{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  opacity: .95;
}

.ts-footer-line a{
  font-weight: 600;
  text-decoration: none;
}

.ts-sep{ opacity: .65; }

/* Mobile */
@media (max-width: 860px){
  .ts-footer-wrap{
    width: 100%;
    grid-template-columns: 1fr;
    margin-inline: 0;
  }
}

/* ===================================================
   Content pages (Impressum / AGB) – falls genutzt
=================================================== */

.ts-content{
  max-width: 860px;
}

.ts-content h1{
  font-size: clamp(26px, 3vw, 38px);
}

.ts-content h2{
  font-size: clamp(18px, 2.2vw, 22px);
  margin-top: 18px;
}

.ts-hr{
  height: 1px;
  background: rgba(255,255,255,.18);
  border: 0;
  margin: 18px 0;
}

/* ===================================================
   iOS Safari: 100vh-Scroll-Fix (Footer nicht "immer scrollbar")
=================================================== */

/* statt 100vh -> dynamische Viewport-Höhe verwenden */
.ts-page{
  min-height: 100svh; /* iOS stable viewport height */
}

/* wenn unterstützt, noch besser: dynamische Höhe (Adressleiste) */
@supports (height: 100dvh){
  .ts-page{
    min-height: 100dvh;
  }
}

/* optional: verhindert zusätzlich horizontalen Mini-Scroll */
html, body{
  overflow-x: hidden;
}