/* Knoflach World Online – responsive theme
   Put this file at: /css/kwo.css
   Existing CGI links and server-side template placeholders are intentionally retained. */

:root {
  color-scheme: light;
  --page-bg: #e2e8ec;
  --surface: #ffffff;
  --surface-soft: #eaf2f7;
  --primary: #0878ac;
  --primary-dark: #105f83;
  --text: #26384a;
  --muted: #607286;
  --border: #dce5ed;
  --shadow: 0 8px 24px rgba(35, 57, 75, .09);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.kwo-page {
  margin: 0;
  padding: 18px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.site-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius);
}

.brand img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  object-fit: contain;
}

.header-banner {
    background-image: url("/images/knoflach_wide_banner_new.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 16px;
  color: var(--text);
  font-size: .94rem;
  font-weight: 600;
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: var(--primary);
  text-decoration: none;
}

.main-nav .nav-status { margin-left: auto; padding-inline: 10px; }
.ssl-status { display: block; max-width: 34px; max-height: 22px; object-fit: contain; }

.account-tools {
    margin-left: auto;
    padding-inline: 10px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.account-info {
    display: flex;
    align-items: center;
    padding-inline: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar,
.content-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar { padding: 14px; }

.service-nav { display: grid; gap: 9px; }

.service-nav a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 10px 13px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.service-nav a::before {
  content: "›";
  margin-right: 10px;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}

.service-nav a:hover,
.service-nav a:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}
.service-nav a:hover::before,
.service-nav a:focus-visible::before { color: #fff; }

.certification {
  margin-top: 34px;
  padding: 16px 8px 4px;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}
.certification img { display: block; width: min(100%, 105px); height: auto; margin: 0 auto 8px; }
.certification p { margin: 0; }

.main-content { min-width: 0; }

.content-panel { padding: clamp(20px, 4vw, 42px); }

.page-intro { margin-bottom: 24px; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
}
h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}
.lead { margin: 0; color: var(--muted); font-size: 1.08rem; }

.welcome-copy { color: #405365; }
.welcome-copy p { margin: 0 0 14px; }
.welcome-image {
  float: left;
  width: clamp(90px, 17%, 145px);
  height: auto;
  margin: 2px 22px 14px 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(35, 57, 75, .12);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}
.service-tags li {
  padding: 5px 11px;
  color: var(--primary-dark);
  font-size: .86rem;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.contact-hint { clear: both; padding-top: 8px; }
.visit-counter {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}
.visit-counter img { vertical-align: middle; }

.site-footer {
  margin-top: 14px;
  padding: 16px 20px;
  color: #eaf2f7;
  text-align: center;
  background: #26384a;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
}
.footer-nav a { color: #fff; font-size: .85rem; font-weight: 600; }
.footer-nav a:hover { color: #9ddcff; }
.site-footer p { margin: 0; color: #c7d4df; font-size: .76rem; }

/* Existing pages loaded into the same template can contain tables and long URLs. */
.main-content img { max-width: 100%; }
.main-content table { max-width: 100%; }
.main-content pre { max-width: 100%; overflow-x: auto; }
.main-content input,
.main-content select,
.main-content textarea { max-width: 100%; }

@media (max-width: 760px) {
  body.kwo-page { padding: 10px; }
  .site-header { grid-template-columns: 1fr; gap: 10px; }
  .brand { min-height: 72px; }
  .brand img { width: min(70%, 220px); }
  .header-banner { min-height: 76px; }
  .main-nav { gap: 5px; padding: 7px; }
  .main-nav a { flex: 1 1 auto; min-height: 38px; padding: 8px 11px; font-size: .88rem; }
  .main-nav .nav-status { margin-left: 0; flex: 0 0 auto; }
  .page-layout { grid-template-columns: 1fr; gap: 12px; }
  .sidebar { padding: 10px; }
  .service-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certification { margin-top: 12px; padding-top: 8px; }
  .certification img { width: 76px; }
  .content-panel { padding: 22px 18px; }
  .account-tools { margin-left: auto; flex: 0 0 auto; }
}

@media (max-width: 430px) {
  body.kwo-page { padding: 7px; }
  .main-nav a { flex: 1 1 calc(50% - 5px); }
  .service-nav { grid-template-columns: 1fr; }
  .welcome-image { float: none; display: block; width: min(100%, 150px); margin: 0 0 16px; }
  .footer-nav { gap: 8px 13px; }
}


/* Additional page templates: services, news, contact, e-mail and legal */
.feature-intro { display: flow-root; margin: 22px 0; color: #405365; }
.feature-image {
  float: left;
  width: clamp(88px, 18%, 145px);
  height: auto;
  margin: 2px 22px 14px 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(35, 57, 75, .12);
}
.service-tags-large { margin-top: 20px; }
.service-tags-large li { padding: 8px 14px; }
.contact-company-card { text-align: center; }
.company-logo { display: block; max-width: min(100%, 260px); max-height: 110px; object-fit: contain; margin: 12px auto 18px; }
.contact-company-card h2 { margin: 0 0 8px; color: var(--text); }
.contact-company-card address { margin: 16px 0; color: var(--muted); font-style: normal; }
.contact-person { margin-bottom: 3px; font-weight: 700; }
.contact-details { display: grid; gap: 5px; margin-top: 18px; }
.contact-details p { margin: 0; overflow-wrap: anywhere; }

.contact-form { width: min(100%, 760px); margin: 26px auto 4px; }
.form-field { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 17px; }
.form-field label { padding-top: 10px; color: var(--text); font-size: .92rem; font-weight: 600; }
.form-field input,
.form-field textarea {
  display: block; width: 100%; min-width: 0; padding: 11px 13px;
  color: var(--text); font: inherit; background: #fff;
  border: 1px solid var(--border); border-radius: 9px;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,120,172,.12); }
.form-field textarea { min-height: 150px; resize: vertical; }
.verification-field label img { display: block; max-width: 100%; height: auto; margin-top: 9px; }
.verification-field small { display: block; margin-top: 7px; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 11px 24px; color: #fff; font: inherit; font-weight: 700;
  background: linear-gradient(110deg, #0878ac, #105f83); border: 0; border-radius: 10px;
  box-shadow: 0 5px 12px rgba(16,95,131,.2); cursor: pointer;
}
.primary-button:hover { filter: brightness(1.06); }
.message-success { text-align: center; padding-block: clamp(34px, 7vw, 70px); }
.success-mark {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px;
  color: #fff; font-size: 1.8rem; font-weight: 700; background: #16845b; border-radius: 50%;
}
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; }
.profile-card { text-align: center; }
.profile-logo { display: block; width: min(100%, 260px); height: auto; margin: 18px auto; object-fit: contain; }
.profile-address { color: var(--muted); line-height: 1.8; }
.muted-note { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.legal-content { color: #405365; }
.legal-content h2 { margin: 28px 0 10px; color: var(--text); font-size: 1.15rem; }
.legal-content p { margin: 0 0 16px; line-height: 1.75; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .feature-image { float: none; display: block; width: min(100%, 145px); margin: 0 0 16px; }
  .form-field { grid-template-columns: 1fr; gap: 5px; }
  .form-field label { padding-top: 0; }
  .form-actions { justify-content: stretch; }
  .primary-button { width: 100%; }
}

/* SMS form and SMS response additions for /css/kwo.css */
.sms-panel { max-width: 100%; }
.sms-brand { margin: 0 0 22px; text-align: center; }
.sms-brand img { display: inline-block; width: auto; max-width: min(100%, 300px); height: auto; }
.sms-form { width: min(100%, 620px); margin: 0 auto; }
.sms-form-intro { margin: 0 0 24px; }
.sms-form-intro h1 { margin-bottom: 8px; }
.sms-form-intro p { margin: 0; color: var(--muted); }
.sms-field { display: grid; gap: 8px; margin: 0 0 20px; }
.sms-field label { color: var(--text); font-weight: 700; font-size: .92rem; }
.sms-recipient { display: grid; grid-template-columns: minmax(120px, 175px) minmax(0, 1fr); gap: 10px; }
.sms-form input[type="text"],
.sms-form select,
.sms-form textarea {
  width: 100%; min-width: 0; padding: 11px 12px; color: var(--text);
  font: inherit; background: #fff; border: 1px solid var(--border);
  border-radius: 9px; outline: none;
}
.sms-form textarea { min-height: 125px; resize: vertical; }
.sms-form input:focus, .sms-form select:focus, .sms-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,120,172,.12);
}
.sms-character-count { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.sms-counter-digits { display: inline-flex; align-items: center; gap: 1px; }
.sms-counter-digits img { display: inline-block; width: auto; max-width: 16px; height: auto; }
.sms-form-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.sms-submit {
  min-height: 44px; padding: 10px 24px; color: #fff; font: inherit; font-weight: 700;
  background: var(--primary); border: 0; border-radius: 10px; cursor: pointer;
}
.sms-submit:hover { background: var(--primary-dark); }
.sms-message-result {
  display: flex; align-items: flex-start; gap: 16px; max-width: 620px;
  margin: 12px auto; padding: 22px; background: var(--surface-soft);
  border: 1px solid var(--border); border-radius: 14px;
}
.sms-result-icon {
  display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center;
  color: #fff; font-size: 1.2rem; font-weight: 700; background: var(--primary); border-radius: 50%;
}
.sms-result-text { min-width: 0; padding-top: 5px; color: var(--text); }
.sms-panel select { max-width: 100%; }
@media (max-width: 520px) {
  .sms-recipient { grid-template-columns: 1fr; }
  .sms-form-actions { justify-content: stretch; }
  .sms-submit { width: 100%; }
  .sms-message-result { padding: 16px; }
}


/* Header artwork – clean logo tile and matching panoramic banner.
   Rollback: restore the previous background-image URLs in this block. */
.site-header {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand {
  min-height: 120px;
  height: 120px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #07182b;
  border: 1px solid #07182b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand img {
  display: none;
}

.brand::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("/images/knoflach_header_left_clean.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.header-banner {
  min-height: 100px;
  height: 100px;
  background-color: #07182b;
  background-image: url("/images/knoflach_wide_banner.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; gap: 10px; }
  .brand { min-height: 100px; height: 100px; }
  .header-banner { min-height: 76px; height: 76px; }
}

@media (max-width: 430px) {
  .brand { min-height: 88px; height: 88px; }
  .header-banner { min-height: 88px; height: 88px; }
}

/* Equal height for both header tiles */
.site-header {
    align-items: stretch;
}

.brand {
    height: 110px;
    min-height: 110px;
    padding: 0;
}

.brand::before {
    height: 100%;
}

.header-banner {
    height: 110px;
    min-height: 110px;
}

/* Responsive */
@media (max-width: 760px) {
    .brand {
        height: 100px;
        min-height: 100px;
    }

    .brand::before {
        height: 100%;
    }

    .header-banner {
        height: 100px;
        min-height: 100px;
    }
}

/* Web Counter page */
.counter-page-header { margin-bottom: 26px; }
.counter-page-header h1 { margin-bottom: 10px; }
.counter-intro { max-width: 760px; margin: 0; color: var(--muted); }
.counter-code-box {
  margin: 0 0 22px; padding: 18px;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: 12px;
}
.counter-code-box h2 { margin: 0 0 6px; color: var(--text); font-size: 1.05rem; }
.counter-code-box p { margin: 0 0 12px; color: var(--muted); }
.counter-code-box pre,
.counter-style-card pre {
  max-width: 100%; margin: 0; padding: 12px;
  overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  color: #eaf2f7; background: #26384a; border-radius: 8px;
  font: .82rem/1.55 Consolas, "Courier New", monospace;
}
.counter-code-box code,
.counter-style-card code { color: inherit; }
.counter-style-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.counter-style-card {
  min-width: 0; padding: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.counter-style-card h3 { margin: 0 0 12px; color: var(--text); font-size: 1rem; }
.counter-preview {
  display: flex; align-items: center; justify-content: center;
  min-height: 72px; margin-bottom: 12px; padding: 12px;
  background: #f7f9fb; border: 1px dashed var(--border); border-radius: 9px;
}
.counter-preview img { display: block; max-width: 100%; height: auto; }
@media (max-width: 650px) {
  .counter-style-grid { grid-template-columns: 1fr; }
  .counter-code-box { padding: 14px; }
}

/* News content page */
.news-page-header { margin-bottom: 24px; }
.news-page-header h1 { margin-bottom: 8px; }
.news-intro { margin: 0; color: var(--muted); }
.news-content {
  min-width: 0;
  color: #405365;
  overflow-wrap: anywhere;
}
.news-content img { max-width: 100%; height: auto; }
.news-content table { max-width: 100%; }
.news-content pre { max-width: 100%; overflow-x: auto; }
.news-content h2,
.news-content h3 { color: var(--text); }
.news-content p { line-height: 1.7; }
.news-content a { overflow-wrap: anywhere; }


/* Domain redirection and account manager forms */
.form-page-header { margin-bottom: 24px; }
.form-page-header h1 { margin-bottom: 9px; }
.form-page-intro { margin: 0; color: var(--muted); }
.form-page-note { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.dynamic-return-message { margin: 0 0 18px; color: var(--text); overflow-wrap: anywhere; }
.kwo-form { width: min(100%, 760px); margin: 0 auto; }
.kwo-form .form-field { margin-bottom: 18px; }
.kwo-form input[type="text"],
.kwo-form input[type="password"],
.kwo-form input[type="email"],
.kwo-form input[type="url"],
.kwo-form select {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  color: var(--text); font: inherit; background: #fff;
  border: 1px solid var(--border); border-radius: 9px; outline: none;
}
.kwo-form input:focus,
.kwo-form select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,120,172,.12);
}
.field-with-help { min-width: 0; }
.field-with-help small,
.choice-option small { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.redirect-domain-summary {
  display: grid; gap: 4px; margin: 0 0 22px; padding: 15px 18px;
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: 11px;
}
.summary-label { color: var(--muted); font-size: .8rem; }
.redirect-domain-summary strong { color: var(--text); overflow-wrap: anywhere; }
.choice-fieldset {
  display: grid; gap: 12px; margin: 22px 0; padding: 16px;
  border: 1px solid var(--border); border-radius: 11px;
}
.choice-fieldset legend { padding: 0 7px; color: var(--text); font-weight: 700; }
.choice-option { display: flex; align-items: flex-start; gap: 11px; padding: 10px; background: #f7f9fb; border-radius: 8px; }
.choice-option input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--primary); }
.choice-option strong { color: var(--text); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.secondary-action-form { display: flex; justify-content: flex-end; width: min(100%, 760px); margin: 12px auto 0; }
.secondary-button {
  min-height: 42px; padding: 9px 19px; color: var(--primary-dark); font: inherit; font-weight: 600;
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.secondary-button:hover { background: #dcebf4; }
.readonly-value {
  min-height: 44px; padding: 10px 12px; color: var(--muted);
  background: #f7f9fb; border: 1px solid var(--border); border-radius: 9px;
}
.mobile-number-fields { display: grid; grid-template-columns: minmax(125px, 170px) minmax(0, 1fr); gap: 10px; }
.account-manager-form { margin-top: 10px; }
@media (max-width: 600px) {
  .kwo-form .form-field { grid-template-columns: 1fr; gap: 6px; }
  .kwo-form .form-field label { padding-top: 0; }
  .mobile-number-fields { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .primary-button { width: 100%; }
  .secondary-action-form { justify-content: stretch; }
  .secondary-button { width: 100%; }
}


/* Registration / SSO account login */
.register-login-form { width: min(100%, 560px); }
.login-card-content {
  position: relative;
  padding: 24px;
  background: #f7f9fb;
  border: 1px solid var(--border);
  border-radius: 13px;
}
.login-key-image {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.login-key-image img {
  display: block;
  width: 73px;
  height: 74px;
  object-fit: contain;
}
.register-login-form .form-field { margin-bottom: 17px; }
.register-login-form .form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
}
.register-login-form input[type="text"],
.register-login-form input[type="password"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}
.register-login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,120,172,.12);
}
.register-login-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
@media (max-width: 600px) {
  .login-card-content { padding: 18px; }
  .register-login-form .form-actions { justify-content: stretch; }
  .register-login-form .primary-button { width: 100%; }
}

/* SMS: Login erforderlich */
.kwo-sms-login-required {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  padding: 32px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #26384a;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.kwo-sms-login-card {
  box-sizing: border-box;
  width: min(100%, 520px);
  padding: 28px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(38, 56, 74, .07);
}

.kwo-sms-brand {
  display: inline-block;
  margin: 0 auto 22px;
}

.kwo-sms-brand img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.kwo-sms-login-message {
  margin: 0 0 24px;
}

.kwo-sms-login-message h2 {
  margin: 0 0 10px;
  color: #b42318;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.kwo-sms-login-message p {
  margin: 0;
  color: #526273;
  font-size: 14px;
  line-height: 1.6;
}

.kwo-sms-login-button {
  display: inline-block;
  min-width: 130px;
  padding: 11px 24px;
  border: 0;
  border-radius: 7px;
  background: #0878ac;
  color: #fff;
  font: 600 15px Verdana, Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.kwo-sms-login-button:hover {
  background: #06638f;
}

.kwo-sms-login-button:focus-visible {
  outline: 3px solid rgba(8, 120, 172, .28);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .kwo-sms-login-required {
    min-height: 0;
    padding: 20px 12px;
  }

  .kwo-sms-login-card {
    padding: 22px 18px;
    border-radius: 10px;
  }

  .kwo-sms-login-message h2 {
    font-size: 18px;
  }
}


/* Knoflach World Online – WHOIS modern styling */
.whois-wrap {
    width: 100%;
    max-width: 900px;
    margin: 28px auto 36px;
    padding: 0 18px;
    box-sizing: border-box;
    color: #26384a;
}

.whois-panel,
.whois-result {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 22px;
    padding: 24px 28px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dce5ed;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(30, 50, 70, .08);
}

.whois-title {
    margin: 0 0 18px;
    padding: 0 0 13px;
    color: #26384a;
    font: 600 20px/1.3 Arial, Helvetica, sans-serif;
    border-bottom: 3px solid #0878ac;
}

.whois-intro {
    max-width: 680px;
    margin: 0 auto 22px;
    color: #405366;
    font: 15px/1.6 Arial, Helvetica, sans-serif;
}

.whois-form {
    max-width: 620px;
    margin: 0 auto;
}

.whois-label {
    display: block;
    margin: 0 0 9px;
    color: #26384a;
    font: 600 14px/1.4 Arial, Helvetica, sans-serif;
}

.whois-domain-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.whois-prefix,
.whois-dot {
    color: #405366;
    font: 15px Arial, Helvetica, sans-serif;
}

.whois-domain-input,
.whois-root-select {
    min-height: 40px;
    padding: 8px 11px;
    box-sizing: border-box;
    color: #26384a;
    background: #fff;
    border: 1px solid #cbd7e1;
    border-radius: 7px;
    font: 15px Arial, Helvetica, sans-serif;
}

.whois-domain-input {
    flex: 1 1 180px;
    min-width: 130px;
}

.whois-domain-full {
    display: block;
    width: 100%;
    max-width: 420px;
}

.whois-root-select {
    flex: 0 1 245px;
    max-width: 100%;
}

.whois-domain-input:focus,
.whois-root-select:focus {
    outline: none;
    border-color: #0878ac;
    box-shadow: 0 0 0 3px rgba(8, 120, 172, .14);
}

.whois-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0 0;
}

.whois-button {
    min-height: 39px;
    padding: 9px 18px;
    color: #26384a;
    background: #edf3f7;
    border: 1px solid #cbd7e1;
    border-radius: 7px;
    font: 600 14px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.whois-button:hover {
    background: #e1ebf2;
}

.whois-button-primary {
    color: #fff;
    background: #0878ac;
    border-color: #0878ac;
}

.whois-button-primary:hover {
    background: #06658f;
}

.whois-result-body {
    color: #405366;
    font: 15px/1.65 Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}

.whois-result-body a {
    color: #0878ac;
    text-decoration: underline;
}

.whois-result-body pre {
    max-width: 100%;
    padding: 14px;
    overflow-x: auto;
    color: #26384a;
    background: #f2f6f9;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.whois-result-footer {
    margin-top: 20px;
    padding-top: 12px;
    color: #718293;
    border-top: 1px solid #e2eaf0;
    font: 12px Arial, Helvetica, sans-serif;
    text-align: right;
}

@media (max-width: 600px) {
    .whois-wrap {
        margin: 18px auto 26px;
        padding: 0 12px;
    }

    .whois-panel,
    .whois-result {
        padding: 19px 16px;
        border-radius: 11px;
    }

    .whois-domain-row {
        align-items: stretch;
    }

    .whois-domain-input {
        flex-basis: 100%;
    }

    .whois-root-select {
        flex: 1 1 100%;
        width: 100%;
    }

    .whois-dot {
        display: none;
    }
}

/* Ausschließlich WHOIS-Seite über beide Spalten */
.page-layout > .whois-page {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* WHOIS-Karte zentrieren */
.whois-page .whois-wrap {
    width: 100%;
    max-width: 900px;
    margin: 28px auto 36px;
    padding: 0 18px;
    box-sizing: border-box;
}

/* Verstecktes Phonebook-Formular darf keinen Layout-Abstand erzeugen */
.main-content > form[name="phonebooklogin"] {
    display: none;
    margin: 0;
    padding: 0;
}

/* Zweiten Header-Banner auf schmalen Displays ausblenden */
@media (max-width: 760px) {
    .header-banner {
        display: none !important;
    }
}

/* Single continuous Knoflach World Online header – tall artwork */
.site-header {
    display: block;
    width: 100%;
    margin-bottom: 14px;
}

.site-header .brand {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 10 / 1;
    padding: 0;
    overflow: hidden;
    background-color: #06172b;
    background-image: url("/images/knoflach_header_single_tall.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid #07182b;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.site-header .brand img,
.site-header .header-banner {
    display: none !important;
}

.site-header .brand::before {
    display: none !important;
    content: none !important;
}

/* Mobile: complete image, proportional, without zoom or cropping */
@media (max-width: 760px) {
    .site-header {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .site-header .brand {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 7 / 1;
        background-size: contain;
        background-position: center center;
    }
}

/* Mobile Header – vollständiges Bild proportional darstellen */
@media (max-width: 760px) {
    .site-header .brand {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 2172 / 464 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

