/* riedlinger-it.de – statischer Nachbau des WordPress-Themes "Edin" (mit den Anpassungen des Originals)
   Farben: Blau #1279be, Dunkelgrau #303030, Hellgrau #f8f8f8, Text im Fuß #c5c5c5
   Breiten wie im Original: Kopf/Fuß/Startseiten-Kacheln 1110px, Inhalt 930px (ab 1230px Fensterbreite) */

@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-sans-latin-v17-normal-400.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/pt-sans-latin-v17-normal-700.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-sans-latin-v17-italic-400.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 700; font-display: swap;
  src: url(../fonts/pt-sans-latin-v17-italic-700.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; line-height: 1.5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-y: scroll; }
body { margin: 0; background: #fff; color: #303030; font-family: "PT Sans", "Trebuchet MS", Arial, sans-serif; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { clear: both; font-weight: bold; margin: 0 0 24px; }
h1 { margin-bottom: 10px; font-size: 2.25em; line-height: 1.33333; }
h2 { margin-bottom: 12px; font-size: 1.875em; line-height: 1.6; }
h3 { margin-bottom: 16px; font-size: 1.5em; line-height: 2; }
h4 { margin-bottom: 17px; font-size: 1.375em; line-height: 1.636364; }
h5 { margin-bottom: 21px; font-size: 1.125em; line-height: 1.33333; }
h6 { font-size: 1em; }
p { margin: 0 0 24px; }
ul, ol { margin: 0 0 24px; padding: 0; }
ul { list-style: disc inside; }
li > ul { margin: 0 0 0 24px; }
img { max-width: 100%; height: auto; border: 0; vertical-align: bottom; }
a { color: #1279be; text-decoration: none; }
a:hover, a:focus, a:active { color: #303030; }
a:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
strong { font-weight: bold; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 1000; top: 5px; left: 5px; width: auto; height: auto; clip: auto; padding: 15px 23px; background: #fff; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); font-weight: bold; }

/* ---------- Kopf ---------- */
.site-header { position: relative; background: #fff; }
.header-wrapper { width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 24px; }
.site-branding { display: flex; align-items: center; width: max-content; max-width: 100%; height: 141px; overflow: hidden; color: #303030; }
.site-branding:hover, .site-branding:focus { color: #303030; }
.site-branding img { width: 180px; height: 180px; max-width: none; margin-right: -20px; }
.site-title { padding-top: 16px; font-size: 2.25em; line-height: 1.33333; font-weight: bold; text-transform: uppercase; white-space: nowrap; }

/* Navigation (Desktop: dunkle Leiste mit Aufklappmenüs, nur CSS) */
.nav-toggle, .nav-toggle-label { display: none; }
.main-nav { background: #303030; color: #fff; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; width: 100%; max-width: 930px; margin: 0 auto; padding: 0 24px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a { display: block; padding: 12px 24px; color: #fff; font-size: 1.125em; line-height: 1.33333; font-weight: bold; text-transform: uppercase; }
.main-nav .menu > li.has-sub > a { padding-right: 3em; }
/* Pfeil wie im Original (Genericons-Chevron), hier mit CSS gezeichnet */
.main-nav .menu > li.has-sub::before { content: ""; position: absolute; z-index: 1; top: 50%; right: 1.05em; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid #1279be; border-bottom: 2px solid #1279be; transform: rotate(45deg); pointer-events: none; }
.main-nav .menu > li:hover, .main-nav .menu > li:focus-within { background: #1279be; }
.main-nav .menu > li:hover::before, .main-nav .menu > li:focus-within::before, .main-nav .menu > li.current::before { border-color: #fff; }
.main-nav .menu > li > a:hover, .main-nav .menu > li > a:focus { color: #fff; background: #1279be; }
.main-nav .menu > li > a.active { background: #1279be; }
.main-nav .menu > li.current { background: #1279be; }
.main-nav .menu > li.ancestor > a { font-style: italic; }
.main-nav .sub-menu { position: absolute; top: 100%; left: -999em; z-index: 100; padding-top: 9px; }
.main-nav .sub-menu::before { content: ""; position: absolute; top: 1px; left: 8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #1279be; }
.main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu { left: 0; }
.main-nav .sub-menu li { width: 330px; padding: 12px 24px 0; background: #1279be; font-weight: bold; }
.main-nav .sub-menu li:last-child { border-bottom: 12px solid #1279be; }
.main-nav .sub-menu a { color: #fff; border-bottom: 1px solid transparent; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus, .main-nav .sub-menu a.active { color: #fff; border-bottom-color: #fff; }
.main-nav .sub-menu a.active { font-style: italic; }

/* ---------- Bühne (Seitenkopf mit Bild) ---------- */
.hero { position: relative; padding: 80px 0; background-color: #1279be; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; }
.hero-wrapper { position: relative; width: 100%; max-width: 930px; margin: 0 auto; padding: 0 24px; }
.hero .page-title { margin: 0; text-align: center; }
.hero.front .page-title { text-align: left; }
.hero .entry-content { font-size: 1.125em; line-height: 1.5; }
.hero .entry-content p:last-child { margin-bottom: 0; }
.hero a.button-minimal { display: inline-block; padding: 6px 24px; border: 2px solid #fff; color: #fff; font-size: .875em; line-height: 1.71429; font-weight: bold; text-transform: uppercase; }
.hero a.button-minimal:hover, .hero a.button-minimal:focus { background: #fff; color: #303030; }

.bg-imac { background-image: url(../img/imac.jpg); }
.bg-macbook { background-image: url(../img/macbook.jpg); }
.bg-startup { background-image: url(../img/startup.jpg); }
.bg-datacenter { background-image: url(../img/datacenter.jpg); }
.bg-write { background-image: url(../img/write.jpg); }
.bg-office-marketing { background-image: url(../img/office-marketing.jpg); }
.bg-office-service { background-image: url(../img/office-service.jpg); }
.bg-villingen { background-image: url(../img/villingen.jpg); }
.bg-board { background-image: url(../img/board.jpg); }
.bg-luftaufnahme { background-image: url(../img/luftaufnahme.jpg); }

/* ---------- Inhalt ---------- */
.content-area { width: 100%; max-width: 930px; margin: 0 auto; padding: 24px 24px 30px; }
.entry-content a:not([class]) { border-bottom: none; }
.entry-content h1 { margin-bottom: 10px; }
.entry-content ul { list-style: disc inside; }
.contact-cols { display: flex; flex-wrap: wrap; }
.contact-cols .col-1 { width: 200px; padding-right: 20px; }
.contact-cols .col-2 { padding-top: 35px; }
.contact-cols p.tight { margin-bottom: 10px; }
.contact-cols .phone { padding-left: 10px; font-weight: bold; }
.contact-cols .phone a { color: #8a8a8a; }
.contact-cols .phone a:hover { color: #303030; }
a.button, .button { display: inline-block; padding: 10px 24px; margin: 0 12px 12px 0; background: #1279be; border: 2px solid #1279be; color: #fff; font-weight: bold; text-transform: uppercase; }
a.button:hover, a.button:focus { background: #303030; border-color: #303030; color: #fff; }
a.button.minimal { background: transparent; color: #1279be; }
a.button.minimal:hover, a.button.minimal:focus { background: #1279be; color: #fff; }

/* Kundenlogos (Über uns) */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 250px)); gap: 24px 20px; margin: 0 0 24px; padding: 0 10px; list-style: none; align-items: center; }
.logos li { display: flex; justify-content: flex-start; }

/* Preistabelle (Hosting) – Zeilen per Subgrid gleich hoch, ganz ohne JavaScript */
.ptp { max-width: 865px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 .8em; margin: 30px 0 30px; text-align: center; }
.ptp-col { display: grid; grid-row: span 10; grid-template-rows: subgrid; }
.ptp-col > * { margin: 0; }
.ptp-badge { padding: .3em; margin-bottom: 2px; font-size: .9em; font-weight: bold; line-height: 1.4; color: #fff; }
.ptp-col.highlight .ptp-badge { background: #7f8c8d; border: 1px solid #7f8c8d; }
.ptp-plan { margin: 0; font-size: 1em; line-height: 1.6; padding: .9375em .5em; background: #ddd; color: #333; font-weight: bold; border: 1px solid #ddd; border-bottom: 0; }
.ptp-price { padding: .9375em .5em; background: #eee; color: #333; font-size: 1.25em; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.ptp-item { padding: .9375em .5em; background: #fff; color: #333; font-size: .875em; line-height: 1.6; border-bottom: 1px dotted #ddd; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.ptp-cta { padding: 1.25em 0; background: #eee; border: 1px solid #ddd; border-top: 0; }
a.ptp-button { display: inline-block; width: 75%; padding: .75em 0 .8125em; background: #1279be; border-bottom: 4px solid #005baa; color: #fff; font-weight: bold; line-height: 1.3; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); transition: background-color .3s ease-out; }
a.ptp-button:hover, a.ptp-button:focus { background: #2756b5; color: #fff; }
.ptp-col.highlight a.ptp-button { background: #e74c3c; border-bottom-color: #c0392b; }
.ptp-col.highlight a.ptp-button:hover, .ptp-col.highlight a.ptp-button:focus { background: #f95822; }

/* ---------- Startseite: drei Kacheln ---------- */
.featured-page-area { background: #f8f8f8; padding: 24px 0 0; }
.featured-page-wrapper { display: flex; flex-wrap: wrap; width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 24px; }
.featured-page { width: 100%; padding-bottom: 24px; }
.featured-page .post-thumbnail { display: block; margin-bottom: 24px; }
.featured-page .post-thumbnail:hover, .featured-page .post-thumbnail:focus { opacity: .7; }
.featured-page .post-thumbnail img { display: block; margin: 0 auto; width: 314px; }
.featured-page h2 { margin: 0 0 24px; font-size: 1em; line-height: 1.5; text-transform: uppercase; }
.featured-page h2 a { color: inherit; }
.featured-page h2 a:hover, .featured-page h2 a:focus { color: #1279be; }
.more-link { font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #c5c5c5; }
.more-link:hover, .more-link:focus { border-bottom-color: #303030; }

/* ---------- Fuß ---------- */
.footer-widget-area { background: #303030; color: #c5c5c5; border-top: 4px solid #1279be; padding: 24px 0 0; }
.footer-widget-wrapper { display: flex; flex-wrap: wrap; width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 24px; }
.footer-widget { width: 100%; padding-bottom: 6px; }
.footer-widget .widget-title { margin: 0 0 24px; font-size: 1em; line-height: 1.5; text-transform: uppercase; }
.footer-widget a { color: #fff; }
.footer-widget a:hover, .footer-widget a:focus { color: #c5c5c5; }
.footer-widget p.name { margin-bottom: 10px; }
.footer-widget .custom-footer { margin-bottom: 0; line-height: 1.375; }
.footer-widget .custom-footer a { color: #c5c5c5; }
.footer-widget .custom-footer a:hover { color: #fff; }
.footer-widget .custom-footer.phone { padding-left: 10px; font-weight: bold; }
.footer-widget .custom-footer.phone a { color: #f2f2f2; }
.footer-widget .custom-footer.phone.second { padding-left: 5px; }
.footer-widget ul { list-style: disc; padding-left: 22px; margin-bottom: 24px; }
.footer-widget li::marker { color: #c5c5c5; font-size: .8em; }
.footer-widget .last { margin-bottom: 24px; }

/* 404 */
.not-found { text-align: center; padding: 60px 24px; }

/* ---------- Mobil (unter 1020px): grauer Balken mit Menü-Knopf, aufklappbare blaue Navigation ---------- */
@media (max-width: 1019px) {
  .site-header { border-top: 48px solid #f8f8f8; }
  .nav-toggle { display: block; position: absolute; top: -48px; right: 0; z-index: 3; width: 48px; height: 48px; margin: 0; opacity: 0; cursor: pointer; }
  .nav-toggle-label { display: block; position: absolute; top: -48px; right: 0; z-index: 2; width: 48px; height: 48px; background: #fff; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { position: absolute; left: 17px; width: 14px; height: 2px; background: #303030; content: ""; }
  .nav-toggle-label span { top: 23px; }
  .nav-toggle-label span::before { left: 0; top: -5px; }
  .nav-toggle-label span::after { left: 0; top: 5px; }
  .nav-toggle:checked + .nav-toggle-label { background: #1279be; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { top: 0; background: #fff; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { top: 0; background: #fff; transform: rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-toggle-label { box-shadow: inset 0 0 4px rgba(0,0,0,.75); }
  .site-branding { height: auto; padding: 0; margin: 4px 0; }
  .site-branding img { width: 140px; height: 140px; margin: -10px -12px -10px 0; }
  .site-title { padding-top: 6px; font-size: 1.75em; }
  .footer-widget { padding-bottom: 0; }
  .footer-widget:first-child p { margin-bottom: 0; }
  .main-nav { display: none; background: #1279be; padding-top: 24px; }
  .nav-toggle:checked ~ .main-nav { display: flow-root; padding-bottom: 6px; }
  .main-nav .menu { display: block; max-width: none; }
  .main-nav .menu > li { margin-bottom: 24px; }
  .main-nav .menu > li > a, .main-nav .menu > li.has-sub > a { padding: 12px 0; font-size: 1.25em; line-height: 1.2; border-bottom: 1px solid rgba(255,255,255,.5); }
  .main-nav .menu > li > a.active { background: transparent; font-style: italic; border-bottom-color: #fff; box-shadow: 0 1px 0 0 #fff; }
  .main-nav .menu > li:hover, .main-nav .menu > li:focus-within, .main-nav .menu > li.current { background: transparent; }
  .main-nav .menu > li > a:hover, .main-nav .menu > li > a:focus { background: transparent; border-bottom-color: #fff; }
  .main-nav .menu > li.has-sub::before { display: none; }
  .main-nav .sub-menu { position: static; padding: 0; }
  .main-nav .sub-menu::before { display: none; }
  .main-nav .sub-menu li { width: auto; padding: 12px 0 0; background: transparent; }
  .main-nav .sub-menu li:last-child { border-bottom: 0; }
}
@media (max-width: 380px) {
  .site-title { font-size: 1.5em; }
}

/* Preistabelle untereinander auf schmalen Bildschirmen (wie im Original) */
@media (max-width: 765px) {
  .ptp { display: block; }
  .ptp-col { display: block; margin-bottom: 30px; }
  .ptp-col > .empty { display: none; }
}

@media (min-width: 600px) {
  .content-area { padding-top: 30px; }
  .featured-page-area, .footer-widget-area { padding-top: 30px; }
  .featured-page { padding-bottom: 6px; }
  .hero .entry-content { font-size: 1.25em; }
}
@media (min-width: 768px) {
  .content-area { padding-top: 60px; padding-bottom: 36px; }
  .featured-page-area, .footer-widget-area { padding-top: 60px; padding-bottom: 12px; }
  .featured-page { padding-bottom: 24px; }
  .footer-widget { padding-bottom: 24px; }
  .hero .entry-content { font-size: 1.375em; line-height: 1.636364; }
}
@media (min-width: 1020px) {
  .header-wrapper { max-width: 948px; padding: 0; }
  .featured-page-wrapper, .footer-widget-wrapper { max-width: 900px; padding: 0; gap: 0 60px; }
  .featured-page, .footer-widget { width: 260px; }
  .main-nav .menu { max-width: 900px; padding: 0; }
  .hero-wrapper, .content-area { max-width: 900px; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1230px) {
  .header-wrapper { max-width: 1110px; }
  .featured-page-wrapper, .footer-widget-wrapper { max-width: 1110px; }
  .featured-page, .footer-widget { width: 330px; }
  .main-nav .menu, .hero-wrapper, .content-area { max-width: 930px; }
}
