/* Theme: einheitliche Typografie, Farben und Komponenten (wird zuletzt geladen) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1a1b;
  --ink-soft: #57534e;
  --line: #e7e5e4;
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --brand: #ffbd00;
  --brand-dark: #e5a900;
  --brand-ink: #7a5200;
  --dark: #1c1a1b;
  --ok: #166534;
  --ok-bg: #f0fdf4;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,26,27,.06), 0 8px 24px rgba(28,26,27,.08);
}

html { scroll-behavior: smooth; }

body, input, textarea, select, button {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typografie ---------- */
p, .txt, .txt_data { color: var(--ink); opacity: 1; cursor: auto; line-height: 1.65; }
.txt { color: var(--ink-soft); }
.txt b, .txt strong { color: var(--ink); font-weight: 650; }

h1, h2, h3, h5, .title, h1.title, h2.title {
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.25;
  opacity: 1;
  cursor: auto;
}

h2, h1.title, .title {
  color: var(--ink);
  opacity: 1;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  position: relative;
  padding-bottom: .6em;
  margin-bottom: .9em;
}
h2::after, h1.title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.flex-item-box h2::after, .flex-item-startseite h2::after, .flex-item-box h1.title::after { left: 50%; transform: translateX(-50%); }
.flex-item-box h2, .flex-item-box h1.title, .flex-item-startseite h2 { text-align: center; }

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.alink { color: var(--brand-ink); font-size: inherit; text-decoration: underline; }

/* ---------- Header ---------- */
.flex-container-header {
  background: linear-gradient(180deg, #232021 0%, #171516 100%);
  padding: clamp(20px, 3.5vw, 40px) 5%;
  gap: 18px 40px;
}
.logo { border-radius: 10px; opacity: 1; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sitetitle, h1:not(.title) {
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 650;
  letter-spacing: .01em;
  text-transform: none;
  opacity: 1;
  color: #fff;
  cursor: pointer;
}
div.ttele { display: flex; flex-direction: column; gap: 10px; }
div.ttele br { display: none; }
a.phone {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  color: #fff; opacity: 1;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 18px 8px 40px;
  font-size: .95rem; font-weight: 550;
  transition: background .2s, border-color .2s, color .2s;
}
a.phone i { padding: 0 !important; color: inherit !important; }
a.phone img { left: 14px; top: 50%; margin: 0 !important; transform: translateY(-50%); opacity: .95; }
a.phone:hover { opacity: 1; background: var(--brand); border-color: var(--brand); color: var(--ink); }
a.phone:hover i { color: var(--ink) !important; }
a.hyper { color: #fff; }

/* ---------- Navigation ---------- */
.topnav {
  background: var(--brand);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.topnav a, .dropdown .dropbtn {
  font-family: inherit; font-size: .98rem; font-weight: 550; color: var(--ink);
  padding: 15px 18px;
  transition: background .2s;
}
.topnav a:hover, .dropdown:hover .dropbtn {
  background: rgba(28,26,27,.1); color: var(--ink); transition-duration: .2s;
}
.dropdown-content {
  background: #fff; border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 0;
}
.dropdown-content a { padding: 12px 18px; }
.dropdown-content a:hover { background: var(--bg-soft); }
.topnav button.icon, .topnav button.icon2 { font-family: inherit; }
.topnav button.icon:hover, .topnav button.icon2:hover { background: rgba(28,26,27,.1); transition-duration: .2s; }
@media screen and (max-width: 600px) {
  .topnav a, .dropdown .dropbtn { font-size: 1.05rem; }
  .topnav.responsive { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .topnav.responsive .dropdown-content { box-shadow: none; border: 0; background: rgba(255,255,255,.35); border-radius: 0; }
  .topnav.responsive .dropdown-content a:hover { background: rgba(28,26,27,.1); }
}

/* ---------- Inhalt ---------- */
.flex-container-nav { min-height: 52px; }
.flex-container-main { margin-bottom: 64px; }
.flex-item-col-2, .flex-item-col-0 { padding-left: 6%; padding-right: 6%; }
@media only screen and (min-width: 1200px) { .flex-item-col-2 { padding: 40px 4% 20px 6%; max-width: 40%; } }
@media only screen and (max-width: 1200px) { .flex-item-col-2 { padding: 30px 6% 20px; } }
.flex-item-message { scroll-margin-top: 80px; }
.notice { scroll-margin-top: 80px; }
.flex-item-col-0, .flex-item-col-2, .flex-item-box, .flex-item-text { line-height: 1.7; }

img.startseite, img.polsterreinigung, img.teppichwaesche, img.polsterauflagen {
  filter: none; opacity: 1;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
img.startseite { padding: 0; }
img.polsterreinigung:hover { filter: none; box-shadow: 0 12px 32px rgba(28,26,27,.18); }
iframe { border-radius: var(--radius); border: 0; box-shadow: var(--shadow); }
hr { border: 0; border-top: 1px solid var(--line); }

/* Leistungsliste auf der Startseite */
.aservice { color: inherit; text-decoration: none; border-bottom: 2px solid var(--brand); }
.aservice:hover { color: var(--ink); background: rgba(255,189,0,.25); }

/* ---------- Formulare ---------- */
form { text-align: left; max-width: 440px; }
fieldset { padding: 0; margin: 0; min-width: 0; }
input[type=text], input[type=email], input[type=password], select, textarea[id="message"] {
  width: 100%;
  padding: 13px 16px;
  margin: 0 0 12px 0 !important;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  text-align: left;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
textarea[id="message"] { resize: vertical; min-height: 160px; line-height: 1.5; }
::placeholder { color: #8a857f; opacity: 1; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1px solid var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(255,189,0,.28);
}
input.txtboxh { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; box-shadow: none; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-dark); vertical-align: -3px; margin-right: 6px; }
form p { color: var(--ink-soft); font-size: .93rem; line-height: 1.5; margin: 4px 0 18px; }

input[type=submit], .btn-link {
  display: inline-block;
  width: 100%;
  background: var(--brand); color: var(--ink);
  border: 0; border-radius: 10px;
  padding: 14px 22px;
  font-size: 1.05rem; font-weight: 650; line-height: 1.2;
  text-align: center; text-decoration: none;
  opacity: 1; filter: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28,26,27,.15);
  transition: background .15s, transform .1s, box-shadow .15s;
}
input[type=submit]:hover, .btn-link:hover { background: var(--brand-dark); color: var(--ink); opacity: 1; transition-duration: .15s; box-shadow: 0 4px 14px rgba(229,169,0,.4); }
input[type=submit]:active { transform: translateY(1px); }
input[type=submit]:focus-visible, .btn-link:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.is-sending input[type=submit] { background: #e7e5e4; color: var(--ink-soft); cursor: progress; box-shadow: none; }
.btn-link { width: auto; }

/* ---------- Rückmeldungen ---------- */
.flex-item-message { margin-top: 32px; animation: none; padding: 0 16px; }
.notice {
  max-width: 440px;
  margin: 0 0 24px;
  padding: 18px 20px 18px 54px;
  border-radius: var(--radius);
  border: 1px solid;
  text-align: left;
  line-height: 1.55;
  position: relative;
  animation: notice-in .35s ease-out both;
}
.notice strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.notice p { margin: 14px 0 0; color: inherit; }
.notice::before {
  content: ""; position: absolute; left: 18px; top: 19px;
  width: 24px; height: 24px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.notice-ok { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok); }
.notice-ok::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.notice-err { background: var(--err-bg); border-color: #fecaca; color: var(--err); margin-left: auto; margin-right: auto; }
.notice-err::before { background-color: var(--err); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18v.5'/%3E%3C/svg%3E"); }
.notice-err a { color: inherit; font-weight: 600; }
.notice:focus { outline: none; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notice { animation: none; } html { scroll-behavior: auto; } }
.msg-ok { color: var(--ok); font-weight: 600; }
.msg-err { color: var(--err); font-weight: 600; }

/* ---------- Tabellen ---------- */
#customers { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .95rem; }
#customers td, #customers th { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; }
#customers tr:last-child td { border-bottom: 0; }
#customers tr:nth-child(even) { background: var(--bg-soft); }
#customers tr:hover { background: #fff6dd; }
#customers th { background: var(--dark); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; }

/* Mobil: Zeilen als Karten statt seitlichem Scrollen */
@media only screen and (max-width: 700px) {
  #customers { display: block; overflow: visible; white-space: normal; border: 0; background: none; }
  #customers thead, #customers tr:has(> th) { display: none; }
  #customers tbody, #customers tr, #customers td { display: block; width: 100%; }
  #customers tr { background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; box-shadow: var(--shadow); }
  #customers td { border: 0 !important; padding: 8px 16px; display: flex; gap: 12px; justify-content: space-between; text-align: right; overflow-wrap: anywhere; }
  #customers td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
  #customers td:not([data-label])::before { content: none; }
}

/* ---------- Footer ---------- */
.flex-container-footer { background: var(--dark); color: #d6d3d1; }
.flex-container-footer h3 { color: #fff; opacity: 1; font-size: 1rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.flex-container-footer .layer { opacity: 1; padding: 36px 35px 8px; }
p.footer { color: #d6d3d1; font-size: .95rem; line-height: 1.7; }
.flex-container-footer .alink, .flex-container-footer a { color: var(--brand); text-decoration: none; font-size: inherit; }
.flex-container-footer .alink:hover, .flex-container-footer a:hover { color: #fff; text-decoration: underline; }
div.copy { border-top: 1px solid rgba(255,255,255,.12); margin: 8px 5% 0; width: auto; padding: 18px 0 0; }
p.footer#copy { color: #a8a29e; font-size: .85rem; }
.flex-container-footer .alink_copy, .flex-container-footer .alink_copy:hover { color: inherit; text-decoration: none; }

/* ---------- Nach-oben-Button ---------- */
#myBtn { background: var(--brand); border-radius: 0; opacity: 1; padding: 12px; }
#myBtn:hover { background: var(--brand-dark); transition-duration: .2s; }

/* =====================================================================
   Layout (eine Referenzbreite --w für alles: Foto/Trennlinie, Spalten, Footer)
   2 Spalten  -> eine links, eine rechts, Abstand symmetrisch zur Mitte
   3 Spalten  -> links, genau Mitte, rechts
   ===================================================================== */
:root { --w: 780px; --gap: 48px; }
body { max-width: none; }
.flex-container-header, .flex-container-footer { width: 100%; }

/* Hauptbereich: zentrierter Streifen der Breite --w */
.flex-container-main {
  width: 100%;
  max-width: calc(var(--w) + 40px);
  margin: 0 auto 64px;
  padding: 0 20px;
  justify-content: space-between;
  align-content: flex-start;
}
/* Verwaltungsseiten mit breiter Tabelle */
.flex-container-main:has(> .flex-item-col-3) { max-width: 1180px; }

/* Vollbreite Elemente */
.flex-container-main > .flex-item-box,
.flex-container-main > .flex-item-box-noc,
.flex-container-main > .flex-item-startseite,
.flex-container-main > .flex-item-message,
.flex-container-main > .flex-item-video,
.flex-container-main > .flex-item-map,
.flex-container-main > .flex-item-text,
.flex-container-main > .flex-item-wall {
  flex: 0 0 100%; width: 100%; max-width: 100%;
  margin: 0; padding: 20px 0; text-align: left;
}
.flex-container-main > .flex-item-startseite { padding-top: 40px; }
.flex-container-main > .flex-item-box,
.flex-container-main > .flex-item-box-noc { padding-top: 40px; }
.flex-container-main .flex-item-box h2::after,
.flex-container-main .flex-item-box h1.title::after { left: 0; transform: none; }
.flex-container-main .flex-item-box h2,
.flex-container-main .flex-item-box h1.title { text-align: left; }
.flex-container-main > .flex-item-video, .flex-container-main > .flex-item-map { text-align: center; }
.flex-container-main > .flex-item-map iframe { width: 100%; }
.flex-container-main > .flex-item-wall { max-width: 100%; margin: 0; }
.flex-container-main .flex-item-col-wall { padding: 30px 5%; }

/* Spalten: exakt gleich breit, außen bündig mit dem Streifen */
.flex-container-main > .flex-item-col-2 {
  flex: 0 0 calc((100% - var(--gap)) / 2); width: calc((100% - var(--gap)) / 2); max-width: none;
  padding: 30px 0 20px; margin: 0;
}
.flex-container-main > .flex-item-col-2 ~ .flex-item-col-2 {
  flex: 0 1 auto; width: auto; max-width: calc((100% - var(--gap)) / 2); margin-left: auto;
}
.flex-container-main > .flex-item-col-3 {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3); width: calc((100% - 2 * var(--gap)) / 3); max-width: none;
  padding: 30px 0 20px; margin: 0;
}
.flex-container-main form { max-width: 100%; }

/* ---------- Navigation ---------- */
.flex-container-nav { min-height: 54px; }
.topnav { overflow: visible; display: flow-root; }
.topnav a, .dropdown .dropbtn { display: block; box-sizing: border-box; height: 54px; line-height: 24px; padding: 15px 18px; vertical-align: top; }
.dropdown { position: relative; overflow: visible; }
.dropdown .dropbtn { width: 100%; text-align: center; }
.dropdown-content { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 200px; border-radius: 0 0 12px 12px; }
.topnav a:hover, .dropdown:hover .dropbtn, .dropdown:focus-within .dropbtn { background: var(--dark); color: var(--brand); }
.topnav .dropdown-content a { height: auto; line-height: 1.4; padding: 13px 20px; border-left: 3px solid transparent; }
.topnav .dropdown-content a:hover { background: #fff3cc; color: var(--ink); border-left-color: var(--brand); }

@media screen and (max-width: 600px) {
  .topnav a, .dropdown .dropbtn { height: auto; }
  .dropdown .dropbtn { display: none; }
  .topnav.responsive .dropdown .dropbtn { display: block; text-align: left; }
  .topnav.responsive { background: var(--dark); padding: 8px 0 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .topnav.responsive a, .topnav.responsive .dropdown .dropbtn { color: #fff; padding: 14px 24px; }
  .topnav.responsive a:hover, .topnav.responsive .dropdown:hover .dropbtn { background: rgba(255,255,255,.08); color: var(--brand); }
  .topnav.responsive a:first-child { color: var(--brand); }
  .topnav.responsive .dropdown-content { position: relative; background: #2a2627; border: 0; border-radius: 0; box-shadow: none; }
  .topnav.responsive .dropdown-content a { padding-left: 40px; color: #e7e5e4; border-left: 0; }
  .topnav.responsive .dropdown-content a:hover { background: rgba(255,189,0,.15); color: var(--brand); }
  .topnav.responsive button.icon2 { color: #fff; font-size: 1.1rem; padding: 14px 24px; }
  .topnav.responsive button.icon2:hover { background: rgba(255,255,255,.08); }
  .topnav button.icon { font-size: 1.3rem; }
}

/* ---------- Nach-oben-Button ---------- */
#myBtn { width: 48px; height: 48px; right: 20px; bottom: 20px; padding: 0; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.3); opacity: .95; }
#myBtn img { display: block; width: 22px; height: auto; margin: 0 auto; }

/* ---------- Footer: gleicher Streifen wie der Inhalt, links / exakt Mitte / rechts ---------- */
.flex-container-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; column-gap: var(--gap); align-items: start;
  padding: 0 max(20px, calc((100% - var(--w)) / 2));
  box-sizing: border-box;
}
.flex-container-footer > br { display: none; }
.flex-container-footer > .flex-item-col-3 { width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 0; justify-self: start; }
.flex-container-footer > .flex-item-col-3 ~ .flex-item-col-3 { justify-self: center; }
.flex-container-footer > .flex-item-col-3 ~ .flex-item-col-3 ~ .flex-item-col-3 { justify-self: end; }
.flex-container-footer .layer { padding: 36px 0 8px; }
.flex-container-footer > div.copy { grid-column: 1 / -1; width: 100%; max-width: none; margin: 8px 0 0; padding: 0; border: 0; text-align: center; }
div.copy p { margin: 0 0 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
div.copy br { display: none; }

/* ---------- Mobil: alles untereinander ---------- */
@media only screen and (max-width: 768px) {
  :root { --gap: 0px; }
  .txt { font-size: 1rem; }
  .flex-container-main { padding: 0 16px; }
  .flex-container-main > .flex-item-col-2, .flex-container-main > .flex-item-col-2 ~ .flex-item-col-2, .flex-container-main > .flex-item-col-3 { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0; padding: 24px 0 10px; }
  .flex-container-footer { padding: 0 24px; grid-template-columns: 1fr; }
  .flex-container-footer > .flex-item-col-3, .flex-container-footer > .flex-item-col-3 ~ .flex-item-col-3, .flex-container-footer > .flex-item-col-3 ~ .flex-item-col-3 ~ .flex-item-col-3 { width: 100%; justify-self: stretch; }
  .flex-container-footer .layer { padding: 24px 0 0; }
  .flex-container-footer .layer > br:last-child { display: none; }
  div.copy p { text-align: left; margin-bottom: 84px; }
}
@media only screen and (min-width: 769px) and (max-width: 900px) {
  .flex-container-main:has(> .flex-item-col-3) > .flex-item-col-3 { flex-basis: calc((100% - var(--gap)) / 2); width: calc((100% - var(--gap)) / 2); }
}
