/* AUGENSTOLZ – Homepage-Entwurf 2026-11-30
   Struktur an die Shop-Oberflaechen angelehnt, bestaetigte Pastellfarben beibehalten.
   Nur Layout / CSS; ohne Framework, Tracking, externe Fonts oder Javascript. */
:root { --ink:#202124; --muted:#5d6268; --page:#f5f5f5; --line:#e0e2e5; --radius:18px; --shadow:0 7px 25px rgba(28,35,44,.065); }
* {box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:95px}
body{margin:0;color:var(--ink);background:var(--page);font:16px/1.62 Arial,Helvetica,sans-serif}
a{color:inherit;text-underline-offset:3px}a:hover{text-decoration-thickness:2px}
img{max-width:100%;height:auto}
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);box-shadow:0 1px 9px rgba(0,0,0,.035)}
.top-nav{width:min(1180px,calc(100% - 40px));margin:auto;display:flex;justify-content:center;gap:4px 12px;flex-wrap:wrap;padding:11px 0}
.top-nav a{text-decoration:none;font-weight:700;font-size:14px;padding:9px 13px;border-radius:9px;white-space:nowrap}
.top-nav a:hover,.top-nav a:focus-visible{background:#f1f2f4;outline:none}
.site-content{width:min(1180px,calc(100% - 40px));margin:0 auto 55px}
.hero{margin:26px auto 30px;background:#fff;border:1px solid #e8e8e8;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;padding:27px 30px 25px;overflow:hidden}
.brand-wrap{margin:0 0 5px}.brand-link{display:inline-block;line-height:0}.brand-image{display:block;width:min(590px,100%);margin:auto}
.intro-heading{font-size:clamp(24px,2.9vw,36px);font-weight:800;line-height:1.2;margin:14px 0 8px}
.intro-heading-main{font-size:clamp(22px,2.2vw,26px);margin:10px 0 6px}
.intro-heading-sub{font-size:clamp(16px,1.55vw,20px);font-weight:700;line-height:1.28;margin:10px auto 8px;max-width:900px}
.intro-subheading{font-size:17px;color:var(--muted);margin:0 0 8px}
.intro-subheading br,.brand-wrap br{display:none}
.intro-note{font-size:15px;line-height:1.6;margin:15px auto 0;max-width:930px;padding:12px 18px;border-radius:11px;background:#f7f7f8}
.intro-note font{font-size:inherit!important}
.content-section{margin:0 0 28px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin:0 3px 10px}
.section-heading h2{margin:0;font-size:21px;line-height:1.25;letter-spacing:-.3px}
.section-heading p{margin:0;font-size:13px;color:var(--muted)}
/* Die vorhandenen Farben werden beibehalten. */
table{border-collapse:separate;border-spacing:0;width:100%!important;margin:0}
table > tbody > tr > td{padding:27px 31px;vertical-align:top;border-radius:var(--radius);box-shadow:var(--shadow);font-size:16px}
td[class*=auto-style],td[id^=kasten-]{height:auto!important;width:auto!important}
.auto-style15{background:#ffddff;border:1px solid #d58acc;text-align:center}
.auto-style9{background:#ffccff;border:1px solid #cf72c5;text-align:center}
.auto-style20{background:#fff7cc;border:1px solid #e6d98d;text-align:center}
.auto-style13{background:#d5e2f7;border:1px solid #809fcc;text-align:center}
.auto-style6{background:#bdd1f2;border:1px solid #7696c7;text-align:center}
.auto-style12{background:#ccffcc;border:1px solid #7eb67e;text-align:center}
.auto-style16{background:#ffddd5;border:1px solid #d28b76;text-align:center}
.auto-style21{background:#ffeaff;border:1px solid #dfb2d8;text-align:center}
.auto-style14{background:#e4dbfd;border:1px solid #9e7ac5}
.auto-style19{background:#fff;border:1px solid #e1e1e1}
.shop-cards>tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.shop-cards>tbody>tr{display:block;min-width:0}
.shop-cards>tbody>tr>td{display:flex;flex-flow:column;justify-content:center;align-items:center;min-height:160px;height:100%;width:100%;padding:24px 25px}
.shop-cards td a{display:inline-block;font-weight:800;font-size:clamp(19px,2vw,23px);line-height:1.3;text-decoration:none}
.shop-cards td a:hover{text-decoration:underline}
.shop-card-text{line-height:1.28}
.shop-card-hint{display:block;font-size:14px;line-height:1.3;margin-top:3px;font-weight:400}
.shop-cards>tbody>tr.shop-info-row{grid-column:2}
.shop-info-large{font-size:clamp(18px,1.6vw,22px);font-weight:800;line-height:1.28;margin:0 0 5px}
.shop-info-body{font-size:14px;line-height:1.4;margin:0}
.news-card>tbody>tr>td{padding:25px 28px}
.news-card table{margin:17px auto 12px;width:100%!important;border-spacing:14px 0;border-collapse:separate}
.news-card table tr td{border:0!important;box-shadow:none!important;border-radius:10px;background:rgba(255,255,255,.43);padding:14px 15px!important;vertical-align:middle}
.news-card table img{max-height:330px;object-fit:contain;border-radius:9px;display:inline-block}
.two-column-cards{border-spacing:18px 0}
.two-column-cards tr td{width:50%!important}
.content-card td,.service-card td{padding:29px 36px}
.content-card-section p,.content-card-section span{line-height:1.65}
.site-content>p.auto-style1,.site-content>p.auto-style4{text-align:center;margin:24px auto}
img[src*="frilos_augenstolz"]{display:block;width:min(450px,75%);margin:22px auto;border-radius:13px;box-shadow:var(--shadow)}
img[src*="hot_sharp_me"]{display:block;width:min(320px,65%);margin:20px auto}
.footer-card .auto-style17{margin-left:0}
.footer-card td{padding:28px 36px}
.footer-card p{margin:0 0 17px}
#kasten-kontakt-impressum{line-height:1.65}
@media(max-width:800px){
 .site-content,.top-nav{width:min(100% - 28px,1180px)}
 .hero{padding:22px 20px}
 .shop-cards>tbody{grid-template-columns:1fr;gap:12px}
 .shop-cards>tbody>tr.shop-info-row{grid-column:auto}
 .shop-cards>tbody>tr>td{min-height:110px}
 .two-column-cards{border-spacing:0 12px}
 .two-column-cards tr{display:flex;flex-direction:column;gap:12px}
 .two-column-cards tr td{display:block;width:100%!important}
 .section-heading{display:block}.section-heading p{margin-top:3px}
}
@media(max-width:570px){
 .top-nav{justify-content:center;gap:0;padding:5px 0}.top-nav a{font-size:12px;padding:7px 8px}
 .site-content{width:calc(100% - 20px)}.hero{margin:12px auto 24px;padding:18px 13px}
 .intro-heading{font-size:24px}.intro-heading-main{font-size:20px}.intro-heading-sub{font-size:15px}.intro-subheading{font-size:14px}
 .intro-note{font-size:13px;padding:10px}.section-heading h2{font-size:19px}
 table>tbody>tr>td,.content-card td,.footer-card td,.service-card td{padding:21px 19px}
 .news-card>tbody>tr>td{padding:19px 10px}
 .news-card table{border-spacing:0 10px}
 .news-card table tr{display:block}
 .news-card table td{display:block;width:100%!important;padding:11px 10px!important}
 .news-card table img{max-height:none;width:auto;max-width:85%;height:auto}
 img[src*="frilos_augenstolz"]{width:80%}
}

/* Anpassung 2026-11-30: Desktop weitere 200 px schmaler (980 -> 780).
   Hierdurch werden auch die rosa, gelben und anderen Hintergrund-Kacheln
   zusammen mit dem gesamten Seiteninhalt schmaler. Smartphone bis 800 px unveraendert.
   Desktop-Menue wie das Smartphone-Menue: fixiert oben, horizontales
   Scrollen bei Platzmangel, Ankerlinks zu den vorhandenen Bereichen. */
@media (min-width:801px) {
  .site-content,
  .top-nav { width:min(780px,calc(100% - 40px)); }
  .site-header { position:sticky; top:0; z-index:10; }
  .top-nav {
    flex-wrap:nowrap;
    justify-content:center;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .top-nav a {flex:0 0 auto;}
}

/* v4: Markenlogo direkt unter Navigation, beim Scrollen stets sichtbar.
   Desktop 472px statt bisher 590px (20% schmaler); auf Mobilgeraeten
   proportional zur bisherigen Darstellung skaliert. */
.sticky-brand{display:flex;justify-content:center;align-items:center;padding:5px 12px 9px;background:#fff}
.sticky-brand a{display:block;line-height:0}
.sticky-brand img{display:block;width:472px;max-width:100%;height:auto;aspect-ratio:800 / 228;object-fit:contain}
html{scroll-padding-top:215px}
@media(max-width:800px){
  .sticky-brand img{width:min(472px,calc((100vw - 46px)*.8));max-width:100%}
  html{scroll-padding-top:185px}
}
@media(max-width:570px){
  .sticky-brand{padding:4px 10px 7px}
  html{scroll-padding-top:170px}
}

/* v5: Logo wird in beiden Achsen proportional auf 80% skaliert (590x168 -> 472x135);
   Menue/Logo mittig; Untertitel zwei Schriftstufen kleiner. */

/* v6: Kompakter fester Kopfbereich auf Desktop, Tablet und Smartphone. */
.top-nav{padding-top:3px;padding-bottom:3px;row-gap:0;line-height:1.1;align-items:center}
.top-nav a{line-height:1.1;padding-top:5px;padding-bottom:5px}
.sticky-brand{padding-top:0;padding-bottom:3px}
html{scroll-padding-top:175px}
@media(max-width:800px){html{scroll-padding-top:145px}}
@media(max-width:570px){
  .top-nav{padding-top:2px;padding-bottom:2px;row-gap:0;line-height:1.1}
  .top-nav a{line-height:1.1;padding-top:4px;padding-bottom:4px}
  .sticky-brand{padding-top:0;padding-bottom:2px}
  html{scroll-padding-top:135px}
}

/* v12: nur die Navigation bleibt beim Scrollen stehen. Das große Logo
   befindet sich wieder vor der Überschrift im normalen Seiteninhalt. */
.sticky-brand{display:none}
.hero-brand{display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.hero-brand img{display:block;width:min(472px,100%);height:auto}
.top-nav .nav-home{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0;padding:4px 9px}
.top-nav .nav-home img{display:block;height:14px;width:auto;max-width:none}
html{scroll-padding-top:48px}
@media(max-width:800px){
 .top-nav{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .top-nav a{flex:0 0 auto}
 .hero-brand img{width:min(472px,100%)}
 html{scroll-padding-top:48px}
}
@media(max-width:570px){
 .top-nav .nav-home img{height:12px}
 .top-nav .nav-home{padding:4px 7px}
 .hero-brand{margin-bottom:8px}
 html{scroll-padding-top:40px}
}

/* v13: Die sechs Felder des zweispaltigen Aktuell-Rasters deutlich trennen. */
.news-card table{border-spacing:12px 12px;margin:10px auto 8px}
.news-card table tr td{
 border:1px solid #d6c99d!important;
 background:rgba(255,255,255,.70);
 box-shadow:0 2px 6px rgba(0,0,0,.06)!important;
 border-radius:9px;
}
/* v13: Abstaende unter dem grossen Logo und vor dem PS bewusst kompakter. */
.hero-brand{margin-bottom:3px}
.intro-heading-main{margin-top:3px;margin-bottom:3px}
.intro-heading-sub{margin-top:3px;margin-bottom:3px}
.intro-note{margin-top:6px}
@media(max-width:570px){
 .news-card table{border-spacing:0 8px}
 .news-card table tr{margin-bottom:8px}
 .news-card table td{margin-bottom:8px}
 .hero-brand{margin-bottom:3px}
}

/* v14: Nur Desktop – Messekarte passt sich dem Inhalt an.
   Rechter Informationskasten erhält mehr Breite; mobil bleibt die Anordnung unverändert. */
@media (min-width:801px) {
 .two-column-cards>tbody>tr {
   display:grid;
   grid-template-columns:minmax(0,2fr) minmax(0,3fr);
   gap:18px;
   align-items:start;
 }
 .two-column-cards>tbody>tr>td {
   display:block;
   width:100%!important;
   min-width:0;
   align-self:start;
 }
}
